aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/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