mirror of
https://github.com/YunoHost-Apps/funkwhale_ynh.git
synced 2024-09-03 18:36:24 +02:00
Fix rights for datadir from previous version
This commit is contained in:
parent
60dbbdfae8
commit
394c6995cb
1 changed files with 5 additions and 1 deletions
|
@ -107,11 +107,15 @@ if [ -z "$datadir" ]; then
|
|||
pushd $datadir
|
||||
mkdir -p static media music
|
||||
popd
|
||||
|
||||
chmod -R 750 "$datadir"
|
||||
chmod -R o-rwx "$datadir"
|
||||
chown -R $app:www-data "$datadir"
|
||||
|
||||
ynh_backup_if_checksum_is_different --file="$final_path/code/config/.env"
|
||||
mkdir -p $final_path/config
|
||||
rsync -a $final_path/code/config/ $final_path/config/
|
||||
chmod 600 $final_path/config/.env
|
||||
chmod 400 $final_path/config/.env
|
||||
ynh_store_file_checksum --file="$final_path/config/.env"
|
||||
ynh_delete_file_checksum --file="$final_path/code/config/.env"
|
||||
|
||||
|
|
Loading…
Reference in a new issue