From 63df28b7813a68f472e0d9143cf7ef07c021b2f6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 7 Jul 2021 09:17:47 +0200 Subject: [PATCH] Fix --- conf/app.src | 2 +- scripts/install | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/conf/app.src b/conf/app.src index 219b2ba..a8115f2 100644 --- a/conf/app.src +++ b/conf/app.src @@ -3,4 +3,4 @@ SOURCE_SUM=13b4accb4dbf9212dbbe5154e24f8816c31e07d8becb7cb2003466a3d04de3ca SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true -SOURCE_FILENAME= \ No newline at end of file +SOURCE_FILENAME=bbs \ No newline at end of file diff --git a/scripts/install b/scripts/install index aa129f9..82c1f0b 100644 --- a/scripts/install +++ b/scripts/install @@ -122,6 +122,21 @@ cd - # echo "UPDATE user SET username = '$admin', password = '$hash', email='$mail' WHERE id = 1;" | sqlite3 $final_path/data/data.db # # fi +#================================================= +# CREATE DATA DIRECTORY +#================================================= +ynh_script_progression --message="Creating a data directory..." --weight=1 + +datadir=/home/yunohost.app/$app +ynh_app_setting_set --app=$app --key=datadir --value=$datadir + +mkdir -p $datadir + +chmod 750 "$datadir" +#chmod -R o-rwx "$datadir" +chown -R $app:www-data "$datadir" +chmod -R ga+w "$datadir" + #================================================= # SETUP SSOWAT #================================================= @@ -130,8 +145,6 @@ ynh_script_progression --message="Configuring permissions..." --weight=1 # Make app public if necessary if [ $is_public -eq 1 ] then - # Everyone can access the app. - # The "main" permission is automatically created before the install script. ynh_permission_update --permission="main" --add="visitors" fi