diff --git a/scripts/install b/scripts/install index ed3bdaa..fac2bbf 100755 --- a/scripts/install +++ b/scripts/install @@ -99,7 +99,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # INSTALL LYCHEE WITH COMPOSER #================================================= -ynh_script_progression --message="Installing ampache with composer..." --weight=45 +ynh_script_progression --message="Installing Lychee with Composer..." --weight=45 # Install composer ynh_install_composer --phpversion="${YNH_PHP_VERSION}" --workdir="$final_path" --install_args="--prefer-source --no-dev" @@ -115,7 +115,6 @@ cp ../conf/.env.example $final_path/.env ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/.env" ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="$final_path/.env" ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/.env" -#ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/.env" # setup application config cd $final_path && php$phpversion artisan key:generate -n --force --env @@ -135,7 +134,7 @@ ynh_store_file_checksum "$final_path/.env" # CREATE DIRECTORIES #================================================= -mkdir -p /home/yunohost.$app/{uploads,data} +mkdir -p /home/yunohost.${app}/{uploads,data} #================================================= # SECURE FILES AND DIRECTORIES @@ -143,7 +142,8 @@ mkdir -p /home/yunohost.$app/{uploads,data} # Set permissions to app files chown -R $app: $final_path -chmod -R 750 /home/yunohost.$app/{uploads,data} +chown -R $app: /home/yunohost.${app} +chmod -R 755 /home/yunohost.${app}/{uploads,data} #================================================= # SETUP SSOWAT