1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00
This commit is contained in:
Éric Gaspar 2024-09-01 18:25:11 +02:00
parent c73bbe2bc1
commit 92ec67a129
4 changed files with 4 additions and 7 deletions

View file

@ -21,7 +21,7 @@ cpe = "cpe:2.3:a:wallabag:wallabag"
fund = "https://liberapay.com/wallabag"
[integration]
yunohost = ">= 11.2.18"
yunohost = ">= 11.2.29"
helpers_version = "2.1"
architectures = "all"
multi_instance = true

View file

@ -55,8 +55,7 @@ done
php_exec fos:user:promote --super "$admin"
# Configure Wallabag instance URL
ynh_mysql_db_shell \
<<< "UPDATE internal_setting SET value = 'https://$domain$path' WHERE name = 'wallabag_url'"
ynh_mysql_db_shell <<< "UPDATE internal_setting SET value = 'https://$domain$path' WHERE name = 'wallabag_url'"
#=================================================
# SETUP HOOKS

View file

@ -16,7 +16,6 @@ ynh_script_progression "Restoring the app main directory..."
ynh_restore "$install_dir"
# Set permissions to app files
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:www-data" "$install_dir"
# Restrict rights to Wallabag user only
if [ -e "$install_dir/var/cache/prod/appProdProjectContainer.php" ]; then
chmod 700 "$install_dir/var/cache/prod/appProdProjectContainer.php"

View file

@ -15,7 +15,7 @@ ynh_script_progression "Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --full_replace --keep="app/config/parameters.yml var/logs web/assets/images"
# Create log dir/file FIXME: is it useless?
# Create log dir/file is it useless?
mkdir -p "$install_dir/var/logs/"
touch "$install_dir/var/logs/prod.log"
@ -35,8 +35,7 @@ php_exec doctrine:migrations:migrate
php_exec cache:clear
# Configure Wallabag instance URL
ynh_mysql_db_shell \
<<< "UPDATE internal_setting SET value = 'https://$domain$path' WHERE name = 'wallabag_url'"
ynh_mysql_db_shell <<< "UPDATE internal_setting SET value = 'https://$domain$path' WHERE name = 'wallabag_url'"
#=================================================
# SETUP HOOKS