Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1539 → Rev 1540

/alcasar.sh
836,9 → 836,8
[ -e /etc/vnstat.conf.default ] || cp /etc/vnstat.conf /etc/vnstat.conf.default
$SED "s?Interface.*?Interface \"$EXTIF\"?g" /etc/vnstat.conf
[ -e /var/www/html/acc/manager/stats/config.php.default ] || cp /var/www/html/acc/manager/stats/config.php /var/www/html/acc/manager/stats/config.php.default
$SED "s?\$iface_list =.*?\$iface_list = array(\'$EXTIF\');?g" /var/www/html/acc/manager/stats/config.php
$SED "s?\$iface_title[.*?\$iface_title[\'$EXTIF\'] = \'Internet outbound\';?g" /var/www/html/acc/manager/stats/config.php
$SED "s?\$iface_list =.*?\$iface_list = array('$EXTIF');?g" /var/www/html/acc/manager/stats/config.php
$SED "s?\$iface_title.*?\$iface_title['$EXTIF'] = 'Internet outbound';?g" /var/www/html/acc/manager/stats/config.php
/usr/bin/vnstat -u -i $EXTIF
} # End of ACC ()
 
/scripts/sbin/alcasar-uninstall.sh
46,7 → 46,7
[ -e /usr/share/httpd/error/include/top.html.default ] && mv /usr/share/httpd/error/include/top.html.default /usr/share/httpd/error/include/top.html && echo -n "9, "
[ -e /usr/share/httpd/error/include/bottom.html.default ] && mv /usr/share/httpd/error/include/bottom.html.default /usr/share/httpd/error/include/top.html && echo -n "10, "
[ -e /etc/vnstat.conf.default ] && mv /etc/vnstat.conf.default /etc/vnstat.conf && echo -n "11, "
[ -e /var/www/html/acc/manager/stats/config.php.default ] || mv /var/www/html/acc/manager/stats/config.php.default /var/www/html/acc/manager/stats/config.php && echo -n "12"
[ -e /var/www/html/acc/manager/stats/config.php.default ] && mv /var/www/html/acc/manager/stats/config.php.default /var/www/html/acc/manager/stats/config.php && echo -n "12"
 
sleep 1