Update scripts/install
This commit is contained in:
parent
8b16d85b14
commit
1bcf87c5f6
1 changed files with 1 additions and 15 deletions
|
@ -151,17 +151,7 @@ yunohost service add "$app" --description="A modern and self-hosted take on file
|
||||||
# Use logrotate to manage application logfile(s)
|
# Use logrotate to manage application logfile(s)
|
||||||
ynh_config_add_logrotate
|
ynh_config_add_logrotate
|
||||||
|
|
||||||
# Create a dedicated Fail2Ban config
|
ynh_script_progression "Installing $app..."
|
||||||
#ynh_config_add_fail2ban --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login"
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SETUP APPLICATION WITH CURL
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
### Use these lines only if the app installation needs to be finalized through
|
|
||||||
### web forms. We generally don't want to ask the final user,
|
|
||||||
### so we're going to use curl to automatically fill the fields and submit the
|
|
||||||
### forms.
|
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
ynh_hide_warnings ynh_exec_as_app yarn install
|
ynh_hide_warnings ynh_exec_as_app yarn install
|
||||||
|
@ -170,10 +160,6 @@ pushd $install_dir
|
||||||
ynh_hide_warnings ynh_exec_as_app yarn build
|
ynh_hide_warnings ynh_exec_as_app yarn build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Installation with curl
|
|
||||||
ynh_script_progression "Finalizing installation..."
|
|
||||||
#ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue