aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉric Gaspar <46165813+ericgaspar@users.noreply.github.com>2024-06-08 21:22:46 +0200
committerÉric Gaspar <46165813+ericgaspar@users.noreply.github.com>2024-06-08 21:22:46 +0200
commit616bcb5f7d8d64ac54688e6d85f879e07d443c57 (patch)
tree7d60e0959802fc804ef363a62e26a6d250c1148a
parentc26e4aaf8fae2df07c3ead780de168e08faf8369 (diff)
Update install
-rwxr-xr-xscripts/install8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/install b/scripts/install
index 9d0505a..a73907c 100755
--- a/scripts/install
+++ b/scripts/install
@@ -30,10 +30,10 @@ chown -R "$app:www-data" "$install_dir"
#=================================================
ynh_script_progression --message="Adding $app's configuration files..." --weight=1
-ynh_add_config --template=".env" --destination="$install_dir/.env"
+ynh_add_config --template=".env" --destination="$install_dir/apps/web/.env"
-chmod 400 "$install_dir/.env"
-chown "$app:$app" "$install_dir/.env"
+chmod 400 "$install_dir/apps/web/.env"
+chown "$app:$app" "$install_dir/apps/web/.env"
#=================================================
# SYSTEM CONFIGURATION
@@ -53,7 +53,7 @@ yunohost service add "$app" --description="A short description of the app" --log
#=================================================
ynh_script_progression --message="Installing $app..." --weight=1
-pushd $install_dir
+pushd $install_dir/apps/web/
ynh_use_nodejs
ynh_exec_as $app env $ynh_node_load_PATH yarn
ynh_exec_as $app env $ynh_node_load_PATH yarn build