1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bookstack_ynh.git synced 2024-09-03 18:16:02 +02:00
This commit is contained in:
ericgaspar 2021-11-16 14:47:44 +01:00
parent f2b7ea7680
commit 8d2ed9df78
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 8 additions and 29 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/BookStackApp/BookStack/archive/refs/tags/v21.10.3.tar.gz SOURCE_URL=https://github.com/BookStackApp/BookStack/archive/refs/tags/v21.11.tar.gz
SOURCE_SUM=b22b0949103c6f34fa0613b9c40bed101e58821d401ee99efe437441451f6c86 SOURCE_SUM=ce20cb1ac3c81971d2f68e5d3b992191ee9510261ffc0a89fc1bbac9d6544bcb
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Platform to create documentation/wiki content", "en": "Platform to create documentation/wiki content",
"fr": "Plateforme pour créer du contenu de documentation/wiki" "fr": "Plateforme pour créer du contenu de documentation/wiki"
}, },
"version": "21.10.3~ynh1", "version": "21.11~ynh1",
"url": "https://www.bookstackapp.com/", "url": "https://www.bookstackapp.com/",
"upstream": { "upstream": {
"license": "MIT", "license": "MIT",

View file

@ -61,29 +61,14 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=1
# Create a temporary directory
#tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
#cp -a "$final_path/.env" "$tmpdir/.env"
#cp -a "$final_path/public/uploads" "$tmpdir/public/uploads"
#cp -a "$final_path/storage/uploads" "$tmpdir/storage/uploads"
# Remove the app directory securely
#ynh_secure_remove --file="$final_path"
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/.env $final_path/public/uploads $final_path/storage/uploads" ynh_setup_source --dest_dir="$final_path" --keep="$final_path/.env $final_path/public/uploads $final_path/storage/uploads"
# Copy the admin saved settings from tmp directory to final path
#cp -a "$tmpdir/.env" "$final_path/.env"
#cp -a "$tmpdir/public/uploads" "$final_path/public/uploads"
#cp -a "$tmpdir/storage/uploads" "$final_path/storage/uploads"
# Remove the tmp directory securely
#ynh_secure_remove --file="$tmpdir"
fi fi
chmod 755 $final_path
chmod -R o-rwx $final_path
chown -R $app:www-data $final_path
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================
@ -113,7 +98,7 @@ ynh_add_fpm_config
ynh_script_progression --message="Installing BookStack with Composer..." --weight=5 ynh_script_progression --message="Installing BookStack with Composer..." --weight=5
# Install composer # Install composer
ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--no-dev" ynh_install_composer --install_args="--no-dev"
#================================================= #=================================================
# FINAL BOOKSTACK INSTALL # FINAL BOOKSTACK INSTALL
@ -127,12 +112,6 @@ pushd $final_path
php$phpversion artisan view:clear --no-interaction php$phpversion artisan view:clear --no-interaction
popd popd
# Set permissions on app files
chmod 755 $final_path
chmod -R o-rwx $final_path
chown -R $app:www-data $final_path
chmod 600 $final_path/.env
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
#================================================= #=================================================