1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moncycle_ynh.git synced 2024-09-03 19:46:16 +02:00

Fix configuration for old installs

This commit is contained in:
Limezy 2024-01-31 15:37:25 +07:00
parent 4aa8f8110b
commit 64985ab52e
2 changed files with 11 additions and 0 deletions

View file

@ -37,6 +37,7 @@ location __PATH__/ {
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;

View file

@ -92,6 +92,16 @@ ynh_add_config --template="../conf/moncycleapp.cron" --destination="/etc/cron.d/
chown root: "/etc/cron.d/$app"
chmod 644 "/etc/cron.d/$app"
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
chmod 400 "$install_dir/config.php"
chown $app:$app "$install_dir/config.php"
#=================================================
# END OF SCRIPT
#=================================================