mirror of
https://github.com/YunoHost-Apps/redmine_ynh.git
synced 2024-09-03 20:16:16 +02:00
fix restore, upgrade
This commit is contained in:
parent
fed43552a2
commit
d34a818b86
3 changed files with 10 additions and 3 deletions
|
@ -31,6 +31,12 @@ ynh_backup --src_path="/etc/logrotate.d/$app"
|
|||
|
||||
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
||||
|
||||
#=================================================
|
||||
# BACKUP VARIOUS FILES
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/var/log/$app/"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE POSTGRESQL DATABASE
|
||||
#=================================================
|
||||
|
|
|
@ -45,8 +45,8 @@ chmod 400 "$install_dir/config/configuration.yml"
|
|||
chown "$app:$app" "$install_dir/config/configuration.yml"
|
||||
|
||||
ynh_add_config --template="db-ldap.sql" --destination="$install_dir/config/db-ldap.sql"
|
||||
chmod 400 "$install_dir/config/configuration.yml"
|
||||
chown "$app:$app" "$install_dir/config/configuration.yml"
|
||||
ynh_psql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < "$install_dir/config/db-ldap.sql"
|
||||
ynh_secure_remove --file="$install_dir/config/db-ldap.sql"
|
||||
|
||||
#=================================================
|
||||
# BUILD APP
|
||||
|
|
|
@ -53,7 +53,8 @@ pushd "$install_dir"
|
|||
popd
|
||||
|
||||
# Setting up LDAP authentification
|
||||
ynh_psql_connect_as $db_user $db_pwd $db_name < "$install_dir/config/db-ldap.sql"
|
||||
ynh_add_config --template="db-ldap.sql" --destination="$install_dir/config/db-ldap.sql"
|
||||
ynh_psql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < "$install_dir/config/db-ldap.sql"
|
||||
ynh_secure_remove --file="$install_dir/config/db-ldap.sql"
|
||||
|
||||
chmod 750 "$install_dir/public"
|
||||
|
|
Loading…
Add table
Reference in a new issue