|
|
@@ -340,15 +340,15 @@ function main() {
|
|
|
|
|
|
if [ "$1" = "--update" ]; then
|
|
|
echo "Verificando paquetes instalados..."
|
|
|
- #checkPackages
|
|
|
+ checkPackages
|
|
|
echo "Verificando Dependecias de python..."
|
|
|
- #installDependencies
|
|
|
+ installDependencies
|
|
|
echo "Actualizando Servicio..."
|
|
|
updateOrCloneRepo
|
|
|
echo "Actualizando versión en .env..."
|
|
|
updateEnvVersion
|
|
|
echo "Reiniciando Servicio..."
|
|
|
- #systemctl restart squidstats.service
|
|
|
+ systemctl restart squidstats.service
|
|
|
|
|
|
ok "Actualizacion completada! Acceda en: \033[1;37mhttp://IP:5000\033[0m"
|
|
|
elif [ "$1" = "--uninstall" ]; then
|