1
0
Fork 0
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:
yalh76 2021-04-17 15:20:12 +02:00
parent 60dbbdfae8
commit 394c6995cb

View file

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