1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/drupal7_ynh.git synced 2024-09-03 18:26:19 +02:00

Fix rights

This commit is contained in:
yalh76 2021-04-11 22:37:14 +02:00
parent dc6c138d05
commit baf141f1fe
3 changed files with 16 additions and 5 deletions

View file

@ -95,7 +95,7 @@ mkdir -p "$final_path/$app"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# NGINX CONFIGURATION
@ -143,8 +143,6 @@ export PATH="$final_path/.composer/vendor/bin:$PATH"
#=================================================
ynh_script_progression --message="Installing Drupal..."
chown -R $app: $final_path
update-alternatives --set php /usr/bin/php$phpversion
pushd "$final_path"

View file

@ -70,7 +70,7 @@ ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION

View file

@ -67,6 +67,19 @@ ynh_script_progression --message="Making sure dedicated system user exists..."
# Create a dedicated user (if not existing)
ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
mkdir -p "$final_path/$app"
fi
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -131,7 +144,7 @@ ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# GENERIC FINALIZATION