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:
parent
5fc73f3136
commit
6378be0068
3 changed files with 7 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
# 8.7.1~ynh1
|
# 8.7.1~ynh1
|
||||||
# upgrade=1 from_commit=f0af5b7a8e58615fe8ad73e3c1d6fe8d1369f061
|
#upgrade=1 from_commit=f0af5b7a8e58615fe8ad73e3c1d6fe8d1369f061
|
||||||
# 8.9.7~ynh1
|
# 8.9.7~ynh1
|
||||||
upgrade=1 from_commit=08ca36cc16691ed64a11034c810f5adefb21186a
|
upgrade=1 from_commit=08ca36cc16691ed64a11034c810f5adefb21186a
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
|
|
|
@ -151,8 +151,6 @@ export PATH="$final_path/vendor/bin:$PATH"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Drupal..."
|
ynh_script_progression --message="Installing Drupal..."
|
||||||
|
|
||||||
chown -R $app: $final_path
|
|
||||||
|
|
||||||
update-alternatives --set php /usr/bin/php$phpversion
|
update-alternatives --set php /usr/bin/php$phpversion
|
||||||
|
|
||||||
pushd "$final_path"
|
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
|
# Calculate and store the config file checksum into the app settings
|
||||||
ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php"
|
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
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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.
|
# Recalculate and store the checksum of the file for the next upgrade.
|
||||||
ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php"
|
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
|
# SETUP THE CRON FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue