mirror of
https://github.com/YunoHost-Apps/drupal7_ynh.git
synced 2024-09-03 18:26:19 +02:00
Fix recursive chmod
This commit is contained in:
parent
a04c55f276
commit
d9847c74a8
3 changed files with 7 additions and 7 deletions
|
@ -92,7 +92,7 @@ ynh_script_progression --message="Creating final path..."
|
|||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
mkdir -p "$final_path/$app"
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
@ -142,7 +142,7 @@ export PATH="$final_path/.composer/vendor/bin:$PATH"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing Drupal..."
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
@ -165,7 +165,7 @@ pushd "$final_path"
|
|||
ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app pm-update
|
||||
ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app core-cron
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
popd
|
||||
|
|
|
@ -68,7 +68,7 @@ ynh_script_progression --message="Restoring the app main directory..."
|
|||
|
||||
ynh_restore_file --origin_path="$final_path"
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ then
|
|||
mkdir -p "$final_path/$app"
|
||||
fi
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
@ -130,7 +130,7 @@ ynh_script_progression --message="Upgrading Drupal..."
|
|||
|
||||
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
@ -146,7 +146,7 @@ pushd "$final_path"
|
|||
|
||||
ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 0
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
popd
|
||||
|
|
Loading…
Reference in a new issue