mirror of
https://github.com/YunoHost-Apps/lutim_ynh.git
synced 2024-09-03 19:36:24 +02:00
Small fixes
This commit is contained in:
parent
d9e6711e2b
commit
fe14938ee6
7 changed files with 15 additions and 10 deletions
|
@ -2,8 +2,11 @@ Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
## [0.12.1~ynh1](https://github.com/YunoHost-Apps/lutim_ynh/pull/46) - 2020-10-18
|
## [0.12.1~ynh1](https://github.com/YunoHost-Apps/lutim_ynh/pull/46) - 2020-10-18
|
||||||
|
|
||||||
|
#### Changed
|
||||||
* [Update to Lutim 0.12.1](https://github.com/YunoHost-Apps/lutim_ynh/pull/52)
|
* [Update to Lutim 0.12.1](https://github.com/YunoHost-Apps/lutim_ynh/pull/52)
|
||||||
|
|
||||||
|
|
||||||
## [0.11.6~ynh4](https://github.com/YunoHost-Apps/lutim_ynh/pull/46) - 2020-04-25
|
## [0.11.6~ynh4](https://github.com/YunoHost-Apps/lutim_ynh/pull/46) - 2020-04-25
|
||||||
|
|
||||||
#### Added
|
#### Added
|
||||||
|
|
|
@ -8,7 +8,7 @@ name = "Lutim configuration"
|
||||||
name = "Lutim configuration"
|
name = "Lutim configuration"
|
||||||
|
|
||||||
[main.configuration.always_encrypt]
|
[main.configuration.always_encrypt]
|
||||||
ask = "Force the encryption of images ?"
|
ask = "Force the encryption of images?"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
default = true
|
default = true
|
||||||
|
|
||||||
|
@ -28,19 +28,19 @@ name = "Lutim configuration"
|
||||||
name = "Overwriting config files"
|
name = "Overwriting config files"
|
||||||
|
|
||||||
[main.overwrite_files.overwrite_settings]
|
[main.overwrite_files.overwrite_settings]
|
||||||
ask = "Overwrite the config file lutim.conf ?"
|
ask = "Overwrite the config file lutim.conf?"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
default = true
|
default = true
|
||||||
help = "If the file is overwritten, a backup will be created."
|
help = "If the file is overwritten, a backup will be created."
|
||||||
|
|
||||||
[main.overwrite_files.overwrite_nginx]
|
[main.overwrite_files.overwrite_nginx]
|
||||||
ask = "Overwrite the nginx config file ?"
|
ask = "Overwrite the nginx config file?"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
default = true
|
default = true
|
||||||
help = "If the file is overwritten, a backup will be created."
|
help = "If the file is overwritten, a backup will be created."
|
||||||
|
|
||||||
[main.overwrite_files.overwrite_systemd]
|
[main.overwrite_files.overwrite_systemd]
|
||||||
ask = "Overwrite the systemd config file ?"
|
ask = "Overwrite the systemd config file?"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
default = true
|
default = true
|
||||||
help = "If the file is overwritten, a backup will be created."
|
help = "If the file is overwritten, a backup will be created."
|
||||||
|
@ -49,7 +49,7 @@ name = "Lutim configuration"
|
||||||
name = "Global configuration"
|
name = "Global configuration"
|
||||||
|
|
||||||
[main.global_config.email_type]
|
[main.global_config.email_type]
|
||||||
ask = "Send HTML email to admin ?"
|
ask = "Send HTML email to admin?"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
default = true
|
default = true
|
||||||
help = "Allow app scripts to send HTML mails instead of plain text."
|
help = "Allow app scripts to send HTML mails instead of plain text."
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
app_depencencies="carton perlmagick libpq-dev shared-mime-info"
|
pkg_depencencies="carton perlmagick libpq-dev shared-mime-info"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP
|
# BACKUP
|
||||||
|
|
|
@ -44,6 +44,8 @@ ynh_backup --src_path="$final_path"
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SPECIFIC BACKUP
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP LOGROTATE
|
# BACKUP LOGROTATE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -81,7 +81,7 @@ ynh_setup_source --dest_dir="$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing dependencies..." --weight=60
|
ynh_script_progression --message="Installing dependencies..." --weight=60
|
||||||
|
|
||||||
ynh_install_app_dependencies $app_depencencies
|
ynh_install_app_dependencies $pkg_depencencies
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
|
@ -86,7 +86,7 @@ chown -R $app: $final_path
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reinstalling dependencies..." --weight=60
|
ynh_script_progression --message="Reinstalling dependencies..." --weight=60
|
||||||
|
|
||||||
ynh_install_app_dependencies $app_depencencies
|
ynh_install_app_dependencies $pkg_depencencies
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
|
|
@ -182,7 +182,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading dependencies..." --weight=9
|
ynh_script_progression --message="Upgrading dependencies..." --weight=9
|
||||||
|
|
||||||
ynh_install_app_dependencies $app_depencencies
|
ynh_install_app_dependencies $pkg_depencencies
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -272,7 +272,7 @@ ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_fil
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading Lutim with carton..." --weight=4
|
ynh_script_progression --message="Upgrading Lutim with Carton..." --weight=4
|
||||||
(cd $final_path
|
(cd $final_path
|
||||||
carton install 2>&1 | tee -a "/var/log/$app/setup_carton.log")
|
carton install 2>&1 | tee -a "/var/log/$app/setup_carton.log")
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue