Update scripts/install

This commit is contained in:
denis 2024-11-07 04:30:44 -05:00
parent a6b22647d0
commit d779ffa406

View file

@ -69,7 +69,7 @@ ynh_script_progression "Adding $app's configuration files..."
### ###
### Check the documentation of `ynh_config_add` for more info. ### Check the documentation of `ynh_config_add` for more info.
ynh_config_add --template="some_config_file" --destination="$install_dir/some_config_file" #ynh_config_add --template="some_config_file" --destination="$install_dir/some_config_file"
# FIXME: this should be handled by the core in the future # FIXME: this should be handled by the core in the future
### You may need to use chmod 600 instead of 400, ### You may need to use chmod 600 instead of 400,
@ -100,9 +100,6 @@ ynh_script_progression "Adding system configurations related to $app..."
### with the reload at the end of the script. ### with the reload at the end of the script.
### - And the section "PHP-FPM CONFIGURATION" in the upgrade script ### - And the section "PHP-FPM CONFIGURATION" in the upgrade script
# Create a PHP-FPM config (with conf/extra_php-fpm.conf being appended to it)
ynh_config_add_phpfpm
# Create a dedicated NGINX config using the conf/nginx.conf template # Create a dedicated NGINX config using the conf/nginx.conf template
ynh_config_add_nginx ynh_config_add_nginx
@ -144,7 +141,7 @@ ynh_config_add_systemd
### to proceed if you later realize that you need to enable some flags that ### to proceed if you later realize that you need to enable some flags that
### weren't enabled on old installs (be careful it'll override the existing ### weren't enabled on old installs (be careful it'll override the existing
### service though so you should re-provide all relevant flags when doing so) ### service though so you should re-provide all relevant flags when doing so)
yunohost service add "$app" --description="A short description of the app" --log="/var/log/$app/$app.log" yunohost service add "$app" --description="A modern and self-hosted take on file uploading services that can handle anything you throw at it thanks to it's robust and fast API, chunked uploads support and more." --log="/var/log/$app/$app.log"
### `ynh_config_add_logrotate` is used to configure a logrotate configuration for the logs of this app. ### `ynh_config_add_logrotate` is used to configure a logrotate configuration for the logs of this app.
### Use this helper only if there is effectively a log file for this app. ### Use this helper only if there is effectively a log file for this app.
@ -171,7 +168,7 @@ ynh_config_add_fail2ban --logpath="/var/log/nginx/${domain}-error.log" --failreg
# Installation with curl # Installation with curl
ynh_script_progression "Finalizing installation..." ynh_script_progression "Finalizing installation..."
ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3" #ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE