1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00
* Auto-update READMEs

* debug

* fix

* Update config.inc.php

* Update manifest.toml

* Update install

* Update install

* Update manifest.toml

* fix

* Update manifest.toml

* Auto-update READMEs

* Update manifest.toml

* Update manifest.toml

* Revert "Update manifest.toml"

This reverts commit 0a0fd27318.

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
eric_G 2024-06-19 22:48:06 +02:00 committed by GitHub
parent 2e3d945a63
commit b7a89ffa97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 1021 deletions

File diff suppressed because it is too large Load diff

View file

@ -79,12 +79,10 @@ ram.runtime = "50M"
format = "zip"
[resources.system_user]
allow_email = true
#allow_email = true
[resources.install_dir]
[resources.data_dir]
[resources.permissions]
main.url = "/"

View file

@ -8,16 +8,6 @@
# PERSONAL HELPERS
#=================================================
_create_data_dirs_if_required() {
dirs=(_data galleries upload)
for dir in "${dirs[@]}"; do
if [ ! -d "$data_dir/$dir" ]; then
rsync -a "$install_dir/$dir/" "$data_dir/$dir/"
fi
ynh_secure_remove "$install_dir/$dir"
done
}
#=================================================
# EXPERIMENTAL HELPERS
#=================================================

View file

@ -19,12 +19,6 @@ ynh_print_info --message="Declaring files to be backed up..."
ynh_backup --src_path="$install_dir"
#=================================================
# BACKUP THE DATA DIR
#=================================================
ynh_backup --src_path="$data_dir" --is_big
#=================================================
# BACKUP THE SYSTEM CONFIGURATION
#=================================================

View file

@ -21,14 +21,11 @@ ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir/plugins/Ldap_Login" --source_id=ldap_plugin
ynh_setup_source --dest_dir="$install_dir/plugins" --source_id=log_failed_logins_plugin
_create_data_dirs_if_required
#_create_data_dirs_if_required
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
chmod -R o-rwx "$data_dir"
chown -R "$app:www-data" "$data_dir"
#=================================================
# SYSTEM CONFIGURATIONS
#=================================================

View file

@ -18,15 +18,6 @@ ynh_restore_file --origin_path="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
ynh_script_progression --message="Restoring the data directory..." --weight=2
ynh_restore_file --origin_path="$data_dir" --not_mandatory
chown -R "$app:www-data" "$data_dir"
#=================================================
# RESTORE THE MYSQL DATABASE
#=================================================

View file

@ -25,7 +25,7 @@ fi
#=================================================
ynh_script_progression --message="Upgrading source files..." --weight=3
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="local/config/config.inc.php local/config/database.inc.php"
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="local/config/config.inc.php local/config/database.inc.php _data galleries upload"
ynh_setup_source --dest_dir="$install_dir/plugins/Ldap_Login" --source_id=ldap_plugin --full_replace=1
ynh_setup_source --dest_dir="$install_dir/plugins" --source_id=log_failed_logins_plugin --full_replace=1