mirror of
https://github.com/YunoHost-Apps/civicrm_drupal7_ynh.git
synced 2024-09-03 18:16:19 +02:00
Fix recursive chmod
This commit is contained in:
parent
1735a1a3ad
commit
a41945032b
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
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
mkdir -p "$final_path/$app"
|
mkdir -p "$final_path/$app"
|
||||||
|
|
||||||
chmod -R 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ export PATH="$final_path/.composer/vendor/bin:$PATH"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Drupal and CiviCRM..."
|
ynh_script_progression --message="Installing Drupal and CiviCRM..."
|
||||||
|
|
||||||
chmod -R 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ pushd "$final_path"
|
||||||
ynh_setup_source --dest_dir="$final_path/$app/sites/all/modules/civicrm" --source_id="civicrm-drupal"
|
ynh_setup_source --dest_dir="$final_path/$app/sites/all/modules/civicrm" --source_id="civicrm-drupal"
|
||||||
ynh_setup_source --dest_dir="$final_path/$app/sites/all/modules/civicrm" --source_id="civicrm-l10n"
|
ynh_setup_source --dest_dir="$final_path/$app/sites/all/modules/civicrm" --source_id="civicrm-l10n"
|
||||||
|
|
||||||
chmod -R 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ ynh_script_progression --message="Restoring the app main directory..."
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$final_path"
|
ynh_restore_file --origin_path="$final_path"
|
||||||
|
|
||||||
chmod -R 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ then
|
||||||
mkdir -p "$final_path/$app"
|
mkdir -p "$final_path/$app"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod -R 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ ynh_script_progression --message="Upgrading Drupal..."
|
||||||
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
|
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
|
||||||
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/civicrm.settings.php"
|
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/civicrm.settings.php"
|
||||||
|
|
||||||
chmod -R 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ pushd "$final_path"
|
||||||
|
|
||||||
ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 0
|
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"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Add table
Reference in a new issue