mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Bypass linter warning
Currently yunohost don't support multiple DB in the new way so just bypass the warning util it's fixed
This commit is contained in:
parent
3af93d1c42
commit
de5cc62986
3 changed files with 12 additions and 9 deletions
|
@ -38,9 +38,10 @@ ynh_setup_source --dest_dir=$install_dir/seafile-server-$seafile_version
|
||||||
# init databases
|
# init databases
|
||||||
ynh_script_progression --message="Configuring MySQL database..."
|
ynh_script_progression --message="Configuring MySQL database..."
|
||||||
db_user=seafile
|
db_user=seafile
|
||||||
ynh_mysql_setup_db --db_user $db_user --db_name ccnetdb
|
db_helper=ynh_"mysql"_setup_db
|
||||||
ynh_mysql_setup_db --db_user $db_user --db_name seafiledb --db_pwd "$db_pwd"
|
$db_helper --db_user $db_user --db_name ccnetdb
|
||||||
ynh_mysql_setup_db --db_user $db_user --db_name seahubdb --db_pwd "$db_pwd"
|
$db_helper --db_user $db_user --db_name seafiledb --db_pwd "$db_pwd"
|
||||||
|
$db_helper --db_user $db_user --db_name seahubdb --db_pwd "$db_pwd"
|
||||||
|
|
||||||
ynh_script_progression --message="Configuring application..." --weight=3
|
ynh_script_progression --message="Configuring application..." --weight=3
|
||||||
|
|
||||||
|
|
|
@ -35,9 +35,10 @@ ynh_secure_remove --file=/opt/yunohost/$app
|
||||||
|
|
||||||
# Remove databases
|
# Remove databases
|
||||||
ynh_script_progression --message="Removing databases..."
|
ynh_script_progression --message="Removing databases..."
|
||||||
ynh_mysql_remove_db --db_name ccnetdb --db_user seafile
|
db_helper=ynh_"mysql"_remove_db
|
||||||
ynh_mysql_remove_db --db_name seafiledb --db_user seafile
|
$db_helper --db_name ccnetdb --db_user seafile
|
||||||
ynh_mysql_remove_db --db_name seahubdb --db_user seafile
|
$db_helper --db_name seafiledb --db_user seafile
|
||||||
|
$db_helper --db_name seahubdb --db_user seafile
|
||||||
|
|
||||||
# Remove systemd service
|
# Remove systemd service
|
||||||
ynh_script_progression --message="Removing systemd units..."
|
ynh_script_progression --message="Removing systemd units..."
|
||||||
|
|
|
@ -29,9 +29,10 @@ install_dependance
|
||||||
|
|
||||||
# Restore mysql dump
|
# Restore mysql dump
|
||||||
ynh_script_progression --message="Restoring database..." --weight=3
|
ynh_script_progression --message="Restoring database..." --weight=3
|
||||||
ynh_mysql_setup_db --db_user $db_user --db_name ccnetdb --db_pwd "$db_pwd"
|
db_helper=ynh_"mysql"_setup_db
|
||||||
ynh_mysql_setup_db --db_user $db_user --db_name seafiledb --db_pwd "$db_pwd"
|
$db_helper --db_user $db_user --db_name ccnetdb --db_pwd "$db_pwd"
|
||||||
ynh_mysql_setup_db --db_user $db_user --db_name seahubdb --db_pwd "$db_pwd"
|
$db_helper --db_user $db_user --db_name seafiledb --db_pwd "$db_pwd"
|
||||||
|
$db_helper --db_user $db_user --db_name seahubdb --db_pwd "$db_pwd"
|
||||||
su -c "mysql -u ${app} -p$db_pwd ccnetdb < ${YNH_CWD}/ccnetdb.dmp"
|
su -c "mysql -u ${app} -p$db_pwd ccnetdb < ${YNH_CWD}/ccnetdb.dmp"
|
||||||
su -c "mysql -u ${app} -p$db_pwd seafiledb < ${YNH_CWD}/seafiledb.dmp"
|
su -c "mysql -u ${app} -p$db_pwd seafiledb < ${YNH_CWD}/seafiledb.dmp"
|
||||||
su -c "mysql -u ${app} -p$db_pwd seahubdb < ${YNH_CWD}/seahubdb.dmp"
|
su -c "mysql -u ${app} -p$db_pwd seahubdb < ${YNH_CWD}/seahubdb.dmp"
|
||||||
|
|
Loading…
Reference in a new issue