Skip to content

Commit

Permalink
Adding multimedia directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain committed May 4, 2024
1 parent 103c0b4 commit f9ef5b2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "Immich"
description.en = "Photo and video backup solution directly from your mobile phone"
description.fr = "Sauvegarde de photos et de vidéos directement depuis votre mobile"

version = "1.103.1~ynh1"
version = "1.103.1~ynh2"

maintainers = ["ewilly"]

Expand Down
3 changes: 3 additions & 0 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ yunohost service add "$app-server" --description="Immich Server" --log="/var/log
yunohost service add "$app-microservices" --description="Immich Microservices" --log="/var/log/$app/$app-microservices.log"
yunohost service add "$app-machine-learning" --description="Immich Machine Learning" --log="/var/log/$app/$app-machine-learning.log"

ynh_multimedia_build_main_dir
ynh_multimedia_addaccess --user_name=$app

ynh_use_logrotate

ynh_add_fail2ban_config --logpath="/var/log/$app/$app-server.log" --failregex="$failregex"
Expand Down
3 changes: 3 additions & 0 deletions scripts/restore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ yunohost service add "$app-server" --description="Immich Server" --log="/var/log
yunohost service add "$app-microservices" --description="Immich Microservices" --log="/var/log/$app/$app-microservices.log"
yunohost service add "$app-machine-learning" --description="Immich Machine Learning" --log="/var/log/$app/$app-machine-learning.log"

ynh_multimedia_build_main_dir
ynh_multimedia_addaccess --user_name=$app

ynh_restore_file --origin_path="/etc/logrotate.d/$app"

ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf"
Expand Down
3 changes: 3 additions & 0 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ yunohost service add "$app-microservices" --description="Immich Microservices" -
yunohost service add "$app-machine-learning" --description="Immich Machine Learning" --log="/var/log/$app/$app-machine-learning.log"
yunohost service add "$app-server" --description="Immich Server" --log="/var/log/$app/$app-server.log"

ynh_multimedia_build_main_dir
ynh_multimedia_addaccess --user_name=$app

ynh_use_logrotate --non-append

ynh_add_fail2ban_config --logpath="/var/log/$app/$app-server.log" --failregex="$failregex"
Expand Down

0 comments on commit f9ef5b2

Please sign in to comment.