|
|
@@ -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
|