Ver código fonte

Update change_url

DeMiro5001 6 meses atrás
pai
commit
b0e9723c00
1 arquivos alterados com 6 adições e 12 exclusões
  1. 6 12
      scripts/change_url

+ 6 - 12
scripts/change_url

@@ -11,13 +11,6 @@
 source _common.sh
 source /usr/share/yunohost/helpers
 
-#=================================================
-# STOP SYSTEMD SERVICE
-#=================================================
-ynh_script_progression "Stopping $app's systemd service..."
-
-ynh_systemctl --service="$app" --action="stop"
-
 #=================================================
 # MODIFY URL IN NGINX CONF
 #=================================================
@@ -31,13 +24,14 @@ ynh_config_change_url_nginx
 #=================================================
 
 ## do any changes to files that reference specific installation domain/path, i.e. regenerate configs etc
+ynh_config_add --template=".env" --destination="$install_dir/.env"
 
-#=================================================
-# START SYSTEMD SERVICE
-#=================================================
-ynh_script_progression "Starting $app's systemd service..."
+chmod 400 "$install_dir/.env"
+chown "$app:$app" "$install_dir/.env"
 
-ynh_systemctl --service="$app" --action="start"
+pushd
+ open-webui serve
+popd
 
 #=================================================
 # END OF SCRIPT