mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Fix linter warings
This commit is contained in:
parent
35e4ace389
commit
3bf2e20501
5 changed files with 4 additions and 11 deletions
|
@ -20,9 +20,6 @@
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
port_already_use=1 (8095)
|
port_already_use=1 (8095)
|
||||||
change_url=1
|
change_url=1
|
||||||
;;; Levels
|
|
||||||
# If the level 5 (Package linter) is forced to 1. Please add justifications here.
|
|
||||||
Level 5=auto
|
|
||||||
;;; Upgrade options
|
;;; Upgrade options
|
||||||
; commit=64a53051c3cd12840ca32b2fdaf0c3063e0158bf
|
; commit=64a53051c3cd12840ca32b2fdaf0c3063e0158bf
|
||||||
name=Merge pull request #42 from YunoHost-Apps/testing
|
name=Merge pull request #42 from YunoHost-Apps/testing
|
||||||
|
|
|
@ -34,7 +34,6 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||||
#=================================================
|
#=================================================
|
||||||
# DECLARE DATA AND CONF FILES TO BACKUP
|
# DECLARE DATA AND CONF FILES TO BACKUP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_print_info --message="Declaring files to be backed up..."
|
ynh_print_info --message="Declaring files to be backed up..."
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -39,9 +39,6 @@ ynh_script_progression --message="Validating installation parameters..."
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||||
|
|
||||||
# Normalize the url path syntax
|
|
||||||
path_url=$(ynh_normalize_url_path --path_url=$path_url)
|
|
||||||
|
|
||||||
# Check if max_file_size is a number
|
# Check if max_file_size is a number
|
||||||
if ! [[ $max_file_size =~ "^[\-0-9]+$" ]] && [ $max_file_size -lt 0 ]; then
|
if ! [[ $max_file_size =~ "^[\-0-9]+$" ]] && [ $max_file_size -lt 0 ]; then
|
||||||
ynh_die --message="Max file must be a number positive or zero"
|
ynh_die --message="Max file must be a number positive or zero"
|
||||||
|
@ -199,7 +196,7 @@ ynh_use_logrotate
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
|
|
||||||
yunohost service add $app --description "Lufi service" --log "$final_path/log/production.log"
|
yunohost service add $app --description="Lufi service" --log="$final_path/log/production.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -101,14 +101,14 @@ ynh_psql_execute_file_as_root --file="./db.sql" --database="$db_name"
|
||||||
ynh_script_progression --message="Restoring the systemd configuration..."
|
ynh_script_progression --message="Restoring the systemd configuration..."
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
systemctl enable $app.service
|
systemctl enable $app.service --quiet
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
|
|
||||||
yunohost service add $app --description "lufi service" --log "$final_path/log/production.log"
|
yunohost service add $app --description="Lufi service" --log="$final_path/log/production.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -211,7 +211,7 @@ chmod +x $final_path/script/lufi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Storing the config file checksum..."
|
ynh_script_progression --message="Storing the config file checksum..."
|
||||||
|
|
||||||
yunohost service add $app --description "lufi service" --log "$final_path/log/production.log"
|
yunohost service add $app --description="Lufi service" --log="$final_path/log/production.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP LOGROTATE
|
# SETUP LOGROTATE
|
||||||
|
|
Loading…
Add table
Reference in a new issue