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

@ -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
#=================================================