1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00

Update install

This commit is contained in:
ericgaspar 2021-09-25 23:03:16 +02:00
parent 5caf91bcfd
commit 35cebce51e
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -40,8 +40,11 @@ ynh_script_progression --message="Validating installation parameters..."
final_path=/var/www/$app
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
datadir="/home/yunohost.app/${app}/data"
# Register (book) web path
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
#=================================================
# STORE SETTINGS FROM MANIFEST
@ -119,11 +122,7 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Creating a data directory..."
datadir="/home/yunohost.app/${app}/data"
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
#mkdir -p $datadir
mkdir -p $datadir
mkdir -p $datadir/{static,media,music}
chmod 750 "$datadir"