diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index c54cb6f..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,7 +0,0 @@ -image: python:3.5-jessie -test: - script: - - apt-get update - - apt-get install git - - git clone https://github.com/YunoHost/package_linter - - python package_linter/package_linter.py . diff --git a/scripts/_common.sh b/scripts/_common.sh index 575ce13..319f198 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= # dependencies used by the app -#pkg_dependencies="rrdtool rrdcached collectd" +pkg_dependencies="rrdtool rrdcached collectd" #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index 65083ec..d4b6568 100755 --- a/scripts/install +++ b/scripts/install @@ -59,9 +59,9 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= # INSTALL DEPENDENCIES #================================================= -# ynh_script_progression --message="Installing dependencies..." --weight=9 +ynh_script_progression --message="Installing dependencies..." --weight=9 -# ynh_install_app_dependencies $pkg_dependencies +ynh_install_app_dependencies $pkg_dependencies #================================================= # CREATE DEDICATED USER diff --git a/scripts/remove b/scripts/remove index 597ec10..84203db 100755 --- a/scripts/remove +++ b/scripts/remove @@ -62,6 +62,7 @@ ynh_script_progression --message="Removing app main directory..." --time --weigh # Remove the app directory securely ynh_secure_remove --file="$final_path" + #================================================= # REMOVE NGINX CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f449fb8..ee0e594 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -47,12 +47,6 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --time --weight=1 -# -# N.B. : the followings setting migrations snippets are provided as *EXAMPLES* -# of what you may want to do in some cases (e.g. a setting was not defined on -# some legacy installs and you therefore want to initiaze stuff during upgrade) -# - # If db_name doesn't exist, create it #if [ -z "$db_name" ]; then # db_name=$(ynh_sanitize_dbid --db_name=$app) @@ -65,9 +59,6 @@ ynh_script_progression --message="Ensuring downward compatibility..." --time --w # ynh_app_setting_set --app=$app --key=final_path --value=$final_path #fi -### If nobody installed your app before 4.1, -### then you may safely remove these lines - # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all @@ -110,9 +101,9 @@ ynh_add_nginx_config #================================================= # UPGRADE DEPENDENCIES #================================================= -# ynh_script_progression --message="Upgrading dependencies..." --weight=1 +ynh_script_progression --message="Upgrading dependencies..." --weight=1 -# ynh_install_app_dependencies $pkg_dependencies +ynh_install_app_dependencies $pkg_dependencies #================================================= # UPDATE A CONFIG FILE