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:
Josué Tille 2023-09-27 19:26:58 +02:00
parent 3af93d1c42
commit de5cc62986
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
3 changed files with 12 additions and 9 deletions

View file

@ -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

View file

@ -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..."

View file

@ -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"