1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nocodb_ynh.git synced 2024-09-03 19:56:01 +02:00

Recreate log directory during restore

This commit is contained in:
tituspijean 2021-09-28 09:49:34 +02:00
parent 5ed9c4752e
commit fa31d764e2
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -89,6 +89,17 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
#=================================================
# RESTORE VARIOUS FILES
#=================================================
ynh_script_progression --message="Restoring various files..." --weight=1
log_path=/var/log/$app
mkdir -p "$log_path"
chmod 750 "$log_path"
chmod -R o-rwx "$log_path"
chown -R $app:www-data "$log_path"
#=================================================
# RESTORE SYSTEMD
#=================================================