1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framaforms_ynh.git synced 2024-09-03 18:36:12 +02:00

Merge branch 'master' into testing

This commit is contained in:
ljf (zamentur) 2019-08-12 18:43:31 +02:00 committed by GitHub
commit 210fd72076
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -92,6 +92,7 @@ ynh_script_progression --message="Configuring system user..." --weight=3
# Create a system user # Create a system user
ynh_system_user_create --username=$app --home_dir="$final_path" ynh_system_user_create --username=$app --home_dir="$final_path"
#================================================= #=================================================
# INSTALL PHP 7.2 # INSTALL PHP 7.2
#================================================= #=================================================

View file

@ -161,13 +161,23 @@ config_file=$final_path/sites/default/settings.php
ynh_store_file_checksum --file="$config_file" ynh_store_file_checksum --file="$config_file"
#================================================= #=================================================
# GENERIC FINALIZATION
#================================================= #=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================
config_file=$final_path/sites/default/settings.php
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$config_file"
#=================================================
# GENERIC FINALIZATION
# SECURE FILES AND DIRECTORIES # SECURE FILES AND DIRECTORIES
#================================================= #=================================================
# Set permissions on app files # Set permissions on app files
chown -R $app: $final_path chown -R $app: $final_path
chown -R $app: "${final_path}_private"
mkdir -p "/home/yunohost.app/$app/data" mkdir -p "/home/yunohost.app/$app/data"
chown -R $app: "/home/yunohost.app/$app/data" chown -R $app: "/home/yunohost.app/$app/data"