mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
Testing (#141)
* restart config panel * Update manifest.toml * Standard (#119) * fix * Update manifest.toml * Update manifest.toml * Update POST_INSTALL.md * Update POST_INSTALL_fr.md * fix * Update manifest.toml * Auto-update README * Update tests.toml * Update tests.toml * remove standard * Update manifest.toml * Auto-update README * Update tests.toml * Update manifest.toml * Update manifest.toml * Update install * Update manifest.toml * Auto-update README * Update manifest.toml * Auto-update README * cleaning * Update manifest.toml * Auto-update README * Update manifest.toml * Auto-update README * Upgrade to v23.6.2 (#128) * Upgrade to v23.6.2 * Auto-update README * Auto-update README * Update manifest.toml * Add maintenance * Update config_panel.toml * Update config * Update config_panel.toml * Update config * Update manifest.toml * Update config * Update config * fix * Update manifest.toml * Auto-update README * Update manifest.toml * Auto-update README * Update manifest.toml * Auto-update README * Update manifest.toml * Update manifest.toml * Auto-update README * Update manifest.toml * Auto-update README * Mail (#139) * fix mail * Auto-update README * Update .env.example * Update .env.example * Update .env.example * Update .env.example * Update .env.example --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * Update manifest.toml * Auto-update README * Update manifest.toml * Update install * fix * fix * Auto-update README * Update systemd.service --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
This commit is contained in:
parent
85d67d8445
commit
36c2151a39
7 changed files with 23 additions and 16 deletions
|
@ -29,7 +29,7 @@ BookStack is an opinionated wiki system that provides a pleasant and simple out
|
||||||
- Diagrams.net Integration
|
- Diagrams.net Integration
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 23.08.3~ynh2
|
**Shipped version:** 23.08.3~ynh3
|
||||||
|
|
||||||
**Demo:** https://demo.bookstackapp.com
|
**Demo:** https://demo.bookstackapp.com
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ BookStack est un système wiki simple prête à l'emploi. Les nouveaux utilisate
|
||||||
- Multilingue
|
- Multilingue
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 23.08.3~ynh2
|
**Version incluse :** 23.08.3~ynh3
|
||||||
|
|
||||||
**Démo :** https://demo.bookstackapp.com
|
**Démo :** https://demo.bookstackapp.com
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=BookStack Queue Worker
|
Description=BookStack: documentation/wiki content
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=__APP__
|
User=__APP__
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "BookStack"
|
||||||
description.en = "Platform to create documentation/wiki content"
|
description.en = "Platform to create documentation/wiki content"
|
||||||
description.fr = "Plateforme pour créer du contenu de documentation/wiki"
|
description.fr = "Plateforme pour créer du contenu de documentation/wiki"
|
||||||
|
|
||||||
version = "23.08.3~ynh2"
|
version = "23.08.3~ynh3"
|
||||||
|
|
||||||
maintainers = ["eric_G"]
|
maintainers = ["eric_G"]
|
||||||
|
|
||||||
|
|
|
@ -37,12 +37,6 @@ ynh_script_progression --message="Setting up source files..." --weight=7
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
# Set permissions to app files
|
|
||||||
chmod -R o-rwx $install_dir
|
|
||||||
chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads
|
|
||||||
|
|
||||||
chown -R $app:www-data $install_dir
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SYSTEM CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -90,6 +84,14 @@ pushd $install_dir
|
||||||
php$phpversion artisan bookstack:create-admin --email="$email" --name="$admin" --external-auth-id="$admin"
|
php$phpversion artisan bookstack:create-admin --email="$email" --name="$admin" --external-auth-id="$admin"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SET PERMISSIONS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
chmod -R o-rwx $install_dir
|
||||||
|
chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads
|
||||||
|
chown -R $app:www-data $install_dir
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -18,8 +18,9 @@ ynh_restore_file --origin_path="$install_dir"
|
||||||
|
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chmod -R o-rwx $install_dir
|
chmod -R o-rwx $install_dir
|
||||||
|
chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads
|
||||||
chown -R $app:www-data $install_dir
|
chown -R $app:www-data $install_dir
|
||||||
chmod 600 $install_dir/.env
|
chmod 640 $install_dir/.env
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE MYSQL DATABASE
|
# RESTORE THE MYSQL DATABASE
|
||||||
|
|
|
@ -50,17 +50,13 @@ then
|
||||||
ynh_setup_source --dest_dir="$install_dir" --keep=".env public/uploads storage/uploads"
|
ynh_setup_source --dest_dir="$install_dir" --keep=".env public/uploads storage/uploads"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod -R o-rwx $install_dir
|
|
||||||
chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads
|
|
||||||
chown -R $app:www-data $install_dir
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REAPPLY SYSTEM CONFIGURATIONS
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
# Create a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
@ -101,6 +97,14 @@ pushd $install_dir
|
||||||
php$phpversion artisan view:clear
|
php$phpversion artisan view:clear
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SET PERMISSIONS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
chmod -R o-rwx $install_dir
|
||||||
|
chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads
|
||||||
|
chown -R $app:www-data $install_dir
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue