From 472bfd47ad7dc853976925e91c9e735afde45174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 14 Jun 2023 12:45:43 +0200 Subject: [PATCH] Update install --- scripts/install | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index e3784f0..c84e52a 100755 --- a/scripts/install +++ b/scripts/install @@ -14,12 +14,9 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Setting up source files..." --weight=5 -# Download, check integrity, uncompress and patch the source from app.src -mkdir -p "$install_dir" +ynh_setup_source --dest_dir="$install_dir" -pushd $install_dir - install_statping -popd +chown -R $app:www-data "$install_dir" #================================================= # ADD A CONFIGURATION @@ -29,9 +26,8 @@ ynh_script_progression --message="Adding a configuration file..." ynh_add_config --template="../conf/.env" --destination="$install_dir/.env" ynh_add_config --template="../conf/services.yml" --destination="$install_dir/services.yml" -chmod 750 "$install_dir" -chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" +chmod 400 "$install_dir/.env" +chown $app:$app "$install_dir/.env" #================================================= # NGINX CONFIGURATION