mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix package linter and update install badge
This commit is contained in:
parent
49534d5afa
commit
ac336efea4
5 changed files with 12 additions and 12 deletions
|
@ -2,7 +2,7 @@ Seafile For yunohost
|
|||
=================
|
||||
|
||||
[![Integration level](https://dash.yunohost.org/integration/seafile.svg)](https://dash.yunohost.org/appci/app/seafile) ![](https://ci-apps.yunohost.org/ci/badges/seafile.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/seafile.maintain.svg)
|
||||
[![Install seafile with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=seafile)
|
||||
[![Install seafile with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=seafile)
|
||||
|
||||
> *This package allow you to install seafile quickly and simply on a YunoHost server.
|
||||
If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.*
|
||||
|
|
|
@ -14,7 +14,7 @@ source /usr/share/yunohost/helpers
|
|||
# Stop script if errors
|
||||
ynh_abort_if_errors
|
||||
|
||||
ynh_script_progression --message="Loading installation settings..."
|
||||
ynh_print_info --message="Loading installation settings..."
|
||||
|
||||
# retrieve useful param
|
||||
domain=$(ynh_app_setting_get --app $app --key domain)
|
||||
|
@ -31,11 +31,11 @@ fi
|
|||
#=================================================
|
||||
|
||||
# # Backup app files
|
||||
ynh_script_progression --message="Backing up code..." --weight=3
|
||||
ynh_print_info --message="Backing up code..."
|
||||
ynh_backup --src_path $final_path
|
||||
ynh_script_progression --message="Backing up user data..." --weight=10
|
||||
ynh_print_info --message="Backing up user data..."
|
||||
ynh_backup --src_path=/home/yunohost.app/seafile-data --dest_path="data" --is_big=1
|
||||
ynh_script_progression --message="Backing up configuration..."
|
||||
ynh_print_info --message="Backing up configuration..."
|
||||
ynh_backup --src_path /etc/nginx/conf.d/$domain.d/${app}.conf
|
||||
ynh_backup --src_path /etc/systemd/system/seafile.service
|
||||
ynh_backup --src_path /etc/systemd/system/seahub.service
|
||||
|
@ -43,9 +43,9 @@ ynh_backup --src_path /etc/fail2ban/jail.d/$app.conf
|
|||
ynh_backup --src_path /etc/fail2ban/filter.d/$app.conf
|
||||
|
||||
# Backup mysql
|
||||
ynh_script_progression --message="Backing up database"
|
||||
ynh_print_info --message="Backing up database"
|
||||
ynh_mysql_dump_db --database ccnetdb > ${YNH_CWD}/ccnetdb.dmp
|
||||
ynh_mysql_dump_db --database seafiledb > ${YNH_CWD}/seafiledb.dmp
|
||||
ynh_mysql_dump_db --database seahubdb > ${YNH_CWD}/seahubdb.dmp
|
||||
|
||||
ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last
|
||||
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|
||||
|
|
|
@ -18,7 +18,7 @@ ynh_script_progression --message="Validating installation parameters..."
|
|||
|
||||
# Retrieve arguments
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path_url=$(ynh_normalize_url_path --path_url $YNH_APP_ARG_PATH)
|
||||
path_url=$YNH_APP_ARG_PATH
|
||||
server_name="$YNH_APP_ARG_SERVER_NAME"
|
||||
admin=$YNH_APP_ARG_ADMIN
|
||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
|
|
|
@ -73,8 +73,8 @@ set_permission
|
|||
# Enable service and start seafile
|
||||
ynh_script_progression --message="Reconfiguring application..."
|
||||
systemctl daemon-reload
|
||||
systemctl enable seafile
|
||||
systemctl enable seahub
|
||||
systemctl enable seafile --quiet
|
||||
systemctl enable seahub --quiet
|
||||
|
||||
# Add Seafile to YunoHost's monitored services
|
||||
ynh_script_progression --message="Register seafile service..."
|
||||
|
|
|
@ -32,8 +32,8 @@ ynh_script_progression --message="Stoping services..."
|
|||
if [ -e /etc/init.d/seafile-server ]
|
||||
then
|
||||
# Old init script support
|
||||
systemctl stop seafile-server
|
||||
systemctl disable seafile-server
|
||||
systemctl stop seafile-server --quiet
|
||||
systemctl disable seafile-server --quiet
|
||||
ynh_secure_remove --file=/etc/init.d/seafile-server
|
||||
yunohost service remove seafile-server
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue