tazpanel diff tazpanel @ rev 337
settings.cgi: set date manualy
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 02 13:35:40 2013 +0100 (2013-01-02) |
parents | b6f8e363b864 |
children | bb7e9e0838e5 |
line diff
1.1 --- a/tazpanel Tue Mar 06 13:40:58 2012 +0100 1.2 +++ b/tazpanel Wed Jan 02 13:35:40 2013 +0100 1.3 @@ -32,25 +32,26 @@ 1.4 1.5 case "$1" in 1.6 start) 1.7 - gettext "Starting TazPanel web server on port $HTTPD_PORT..." 1.8 + eval_gettext 'Starting TazPanel web server on port $HTTPD_PORT...' 1.9 httpd -p $HTTPD_PORT -u root -c $HTTPD_CONF \ 1.10 - -r "$(gettext "TazPanel Authentication - Default: root:root")" & 1.11 + -r "$(gettext 'TazPanel Authentication - Default: root:root')" & 1.12 ps | grep "httpd -p $HTTPD_PORT " | grep -v grep | \ 1.13 awk '{ print $1 }' > $PIDFILE 1.14 status ;; 1.15 stop) 1.16 - gettext "Stopping TazPanel web server..." 1.17 + gettext 'Stopping TazPanel web server...' 1.18 kill $(cat $PIDFILE) && status ;; 1.19 passwd|-p) 1.20 echo "" 1.21 - gettext "Changing password for TazPanel" 1.22 - gettext "New password: " && read pass 1.23 + gettext 'Changing password for TazPanel'; echo 1.24 + gettext 'New password: ' && read pass 1.25 sed -i s"/\/:root:.*/\/:root:$pass/" $HTTPD_CONF 1.26 - gettext "Password changed successfully"; echo 1.27 + gettext 'Password changed successfully'; echo 1.28 echo "" ;; 1.29 *) 1.30 + program_name="$(basename $0)" 1.31 echo "" 1.32 - gettext "Usage:" && echo " $(basename $0) [start|stop|passwd]" 1.33 + eval_gettext 'Usage: $program_name [start|stop|passwd]' 1.34 echo "" ;; 1.35 esac 1.36