diff --git a/scripts/install b/scripts/install index a092b10..7eb888f 100644 --- a/scripts/install +++ b/scripts/install @@ -19,6 +19,7 @@ domain=$YNH_APP_ARG_DOMAIN path=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC +login=$YNH_APP_ARG_LOGIN # Source YunoHost helpers source /usr/share/yunohost/helpers @@ -40,6 +41,11 @@ sudo cp -R "$src_path"/BicBucStriim-1.3.6/* "$src_path" sudo rm "$src_path"/bbs.zip sudo rm -rf "$src_path"/BicBucStriim-1.3.6 +# Disable BicBucStriim login if checked +if [[ $login -eq 1 ]]; then + sudo sed -i -- 's/[LOGIN_REQUIRED] = 1/[LOGIN_REQUIRED] = 0/g' "$src_path"/index.php +fi + # Set permissions to app files sudo chown -R root: $src_path sudo chmod -R ga+w $src_path/data