1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/drupal_ynh.git synced 2024-09-03 18:35:53 +02:00

Apply last example_ynh

This commit is contained in:
yalh76 2021-04-10 23:28:14 +02:00
parent 5fc73f3136
commit 6378be0068
3 changed files with 7 additions and 3 deletions

View file

@ -16,7 +16,7 @@
setup_public=1
upgrade=1
# 8.7.1~ynh1
# upgrade=1 from_commit=f0af5b7a8e58615fe8ad73e3c1d6fe8d1369f061
#upgrade=1 from_commit=f0af5b7a8e58615fe8ad73e3c1d6fe8d1369f061
# 8.9.7~ynh1
upgrade=1 from_commit=08ca36cc16691ed64a11034c810f5adefb21186a
backup_restore=1

View file

@ -151,8 +151,6 @@ export PATH="$final_path/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"
@ -176,6 +174,9 @@ ynh_script_progression --message="Storing the config file checksum..."
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php"
chmod 400 "$final_path/$app/sites/default/settings.php"
chown $app:$app "$final_path/$app/sites/default/settings.php"
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

@ -139,6 +139,9 @@ ynh_script_progression --message="Storing the config file checksum..."
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php"
chmod 400 "$final_path/$app/sites/default/settings.php"
chown $app:$app "$final_path/$app/sites/default/settings.php"
#=================================================
# SETUP THE CRON FILE
#=================================================