1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/omeka-s_ynh.git synced 2024-09-03 19:56:05 +02:00
This commit is contained in:
Éric Gaspar 2024-08-31 12:21:33 +02:00
parent 5507fa3843
commit ccc9022f75
4 changed files with 1 additions and 15 deletions

View file

@ -17,7 +17,7 @@ userdoc = "https://omeka.org/s/docs/user-manual/"
code = "https://github.com/omeka/omeka-s" code = "https://github.com/omeka/omeka-s"
[integration] [integration]
yunohost = ">= 11.2.18" yunohost = ">= 11.2.29"
helpers_version = "2.1" helpers_version = "2.1"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true

View file

@ -15,17 +15,13 @@ ynh_script_progression "Setting up source files..."
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport" ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport"
#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 | chmod -R o-rwx "$install_dir"
#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"
#================================================= #=================================================
# SYSTEM CONFIGURATION # SYSTEM CONFIGURATION
#================================================= #=================================================
ynh_script_progression "Adding system configurations related to $app ..." ynh_script_progression "Adding system configurations related to $app ..."
# Create a dedicated PHP-FPM config
ynh_config_add_phpfpm ynh_config_add_phpfpm
# Create a dedicated NGINX config
ynh_config_add_nginx ynh_config_add_nginx
#================================================= #=================================================
@ -35,12 +31,8 @@ ynh_script_progression "Adding $app's configuration..."
ynh_config_add --template="database.ini.default" --destination="$install_dir/config/database.ini" ynh_config_add --template="database.ini.default" --destination="$install_dir/config/database.ini"
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 400 "$install_dir/config/database.ini"
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown $app "$install_dir/config/database.ini"
#================================================= #=================================================
# TWEAK IMAGICK CONFIGURATION TO ALLOW PDF THUMBNAILS GENERATION # TWEAK IMAGICK CONFIGURATION TO ALLOW PDF THUMBNAILS GENERATION
#================================================= #=================================================
ynh_script_progression "Tweaking ImageMagick conf to allow generation of thumbnails PDF" ynh_script_progression "Tweaking ImageMagick conf to allow generation of thumbnails PDF"

View file

@ -10,8 +10,6 @@ ynh_script_progression "Restoring the app main directory..."
ynh_restore "$install_dir" ynh_restore "$install_dir"
#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 | chmod -R o-rwx "$install_dir"
#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"
#================================================= #=================================================
# RESTORE THE MYSQL DATABASE # RESTORE THE MYSQL DATABASE
#================================================= #=================================================
@ -30,7 +28,6 @@ ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
# TWEAK IMAGICK CONFIGURATION TO ALLOW PDF THUMBNAILS GENERATION # TWEAK IMAGICK CONFIGURATION TO ALLOW PDF THUMBNAILS GENERATION
#================================================= #=================================================
ynh_script_progression "Tweaking imagemagick conf to allow generation of thumbnails PDF" ynh_script_progression "Tweaking imagemagick conf to allow generation of thumbnails PDF"

View file

@ -15,8 +15,6 @@ ynh_script_progression "Upgrading source files..."
ynh_setup_source --dest_dir="$install_dir" --keep="config/local.config.php config/database.ini modules themes files" ynh_setup_source --dest_dir="$install_dir" --keep="config/local.config.php config/database.ini modules themes files"
ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport" ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport"
#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 | chmod -R o-rwx "$install_dir"
#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"
#================================================= #=================================================
# PHP-FPM CONFIGURATION # PHP-FPM CONFIGURATION
#================================================= #=================================================
@ -28,7 +26,6 @@ ynh_config_add_nginx
#================================================= #=================================================
# TWEAK IMAGICK CONFIGURATION TO ALLOW PDF THUMBNAILS GENERATION # TWEAK IMAGICK CONFIGURATION TO ALLOW PDF THUMBNAILS GENERATION
#================================================= #=================================================
ynh_script_progression "Tweaking ImageMagick conf to allow generation of thumbnails PDF" ynh_script_progression "Tweaking ImageMagick conf to allow generation of thumbnails PDF"