1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/codimd_ynh.git synced 2024-09-03 18:16:32 +02:00

Fix linter warnings

This commit is contained in:
ericgaspar 2020-12-14 10:15:40 +01:00
parent dd02609ce2
commit 575bb90d25
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 9 additions and 11 deletions

View file

@ -16,8 +16,6 @@
multi_instance=1
port_already_use=1
change_url=1
;;; Levels
Level 5=auto
;;; Options
Email=
Notification=none

View file

@ -6,7 +6,7 @@
"en": "Collaborative editor to work on notes written in Markdown",
"fr": "Éditeur collaboratif pour travailler sur des notes en Markdown"
},
"version": "1.6.0~ynh5",
"version": "1.6.0~ynh6",
"url": "https://github.com/codimd/server",
"license": "AGPL-3.0-only",
"maintainer": {

View file

@ -118,7 +118,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
#==============================================
# INSTALL CODIMD
#==============================================
ynh_script_progression --message="Building CodiMD... (this will take some time and resources!)" --weight=240
ynh_script_progression --message="Building CodiMD... (this will take some time and resources!)" --weight=24
pushd "$final_path" || ynh_die
@ -200,7 +200,7 @@ if [ $is_public -eq 1 ]
then
# Everyone can access the app.
# The "main" permission is automatically created before the install script.
ynh_permission_update --permission "main" --add "visitors"
ynh_permission_update --permission "main" --add "visitors"
fi
#=================================================

View file

@ -106,7 +106,7 @@ ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
ynh_script_progression --message="Restoring the systemd configuration..." --weight=5
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service
systemctl enable $app.service --quiet
#=================================================
# INTEGRATE SERVICE IN YUNOHOST

View file

@ -36,7 +36,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up CodiMD before upgrading (may take a while)..." --weight=120
ynh_script_progression --message="Backing up CodiMD before upgrading (may take a while)..." --weight=20
# Backup the current version of the app
ynh_backup_before_upgrade
@ -62,7 +62,7 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=160
ynh_script_progression --message="Upgrading source files..." --weight=16
# Create a temporary directory
tmpdir="$(mktemp -d)"
@ -121,7 +121,7 @@ ynh_system_user_create --username=$app
#==============================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Building CodiMD... (this will take some time and resources!)" --weight=160
ynh_script_progression --message="Building CodiMD... (this will take some time and resources!)" --weight=16
pushd "$final_path" || ynh_die
@ -169,7 +169,7 @@ ynh_add_systemd_config
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
ynh_script_progression --message="Securing files and directories..."
ynh_script_progression --message="Securing files and directories..." --weight=1
# Set permissions on app files
chown -R $app:$app $final_path
@ -177,7 +177,7 @@ chown -R $app:$app $final_path
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..."
ynh_script_progression --message="Integrating service in YunoHost..." --weight=2
yunohost service add $app --description "Collaborative Markdown notes" --log="/var/log/$app/$app.log"