mirror of
https://github.com/YunoHost-Apps/galette_ynh.git
synced 2024-09-03 18:36:28 +02:00
fix
This commit is contained in:
parent
b5ce2f8933
commit
52e6fa958f
3 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ ynh_backup --src_path="/etc/logrotate.d/$app"
|
|||
# BACKUP THE SQL DATABASE
|
||||
#=================================================
|
||||
|
||||
if [ $database == "pgsql" ]
|
||||
if [ $database == "postgresql" ]
|
||||
then
|
||||
ynh_print_info --message="Backing up the PostgreSQL database..."
|
||||
ynh_psql_dump_db --database="$db_name" > db.sql
|
||||
|
|
|
@ -23,7 +23,7 @@ db_name=$(ynh_sanitize_dbid --db_name=$app)
|
|||
db_user=$db_name
|
||||
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||
|
||||
if [ $database == "pgsql" ]
|
||||
if [ $database == "postgresql" ]
|
||||
then
|
||||
ynh_script_progression --message="Creating a PostgreSQL database..." --weight=2
|
||||
ynh_psql_test_if_first_run
|
||||
|
@ -81,7 +81,7 @@ ynh_script_progression --message="Setuping application with CURL..."
|
|||
ynh_script_progression --message="Finalizing installation..."
|
||||
ynh_local_curl "/installer.php" "install_permsok=1"
|
||||
ynh_local_curl "/installer.php" "install_type=i"
|
||||
if [ $database == "pgsql" ]
|
||||
if [ $database == "postgresql" ]
|
||||
then
|
||||
ynh_local_curl "/installer.php" "install_dbtype=pgsql" "install_dbhost=localhost" "install_dbport=5432" "install_dbuser=$db_user" "install_dbpass=$db_pwd" "install_dbname=$db_name" "install_dbprefix=galette_"
|
||||
else
|
||||
|
|
|
@ -30,7 +30,7 @@ chown -R $app:www-data "$install_dir"
|
|||
# RESTORE THE SQL DATABASE
|
||||
#=================================================
|
||||
|
||||
if [ $database == "pgsql" ]
|
||||
if [ $database == "postgresql" ]
|
||||
then
|
||||
ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue