1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/torrelay_ynh.git synced 2024-09-03 20:26:36 +02:00

adding tor repos to always get the latest versions

This commit is contained in:
OniriCorpe 2023-04-19 21:15:06 +02:00
parent b11ae9f8b8
commit efea5d98b3
4 changed files with 11 additions and 4 deletions

View file

@ -5,7 +5,8 @@
#================================================= #=================================================
# dependencies used by the app # dependencies used by the app
pkg_dependencies="tor obfs4proxy" pkg_dependencies="apt-transport-https obfs4proxy"
pkg_dependencies_extra="tor tor-geoipdb deb.torproject.org-keyring"
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -60,7 +60,9 @@ ynh_exec_warn_less yunohost firewall allow Both $obfs4_port
#================================================= #=================================================
ynh_script_progression --message="Installing dependencies..." --weight=10 ynh_script_progression --message="Installing dependencies..." --weight=10
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies "$pkg_dependencies"
ynh_install_extra_app_dependencies --repo="https://deb.torproject.org/torproject.org" --package="$pkg_dependencies_extra" --key="https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc"
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION

View file

@ -36,7 +36,9 @@ obfs4_port=$(ynh_app_setting_get --app=$app --key=obfs4_port)
ynh_script_progression --message="Reinstalling dependencies..." --weight=10 ynh_script_progression --message="Reinstalling dependencies..." --weight=10
# Define and install dependencies # Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies "$pkg_dependencies"
ynh_install_extra_app_dependencies --repo="https://deb.torproject.org/torproject.org" --package="$pkg_dependencies_extra" --key="https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc"
#================================================= #=================================================
# RESTORE VARIOUS FILES # RESTORE VARIOUS FILES

View file

@ -56,7 +56,9 @@ ynh_systemd_action --service_name=tor --action="stop" --log_path="systemd"
#================================================= #=================================================
ynh_script_progression --message="Upgrading dependencies..." --weight=10 ynh_script_progression --message="Upgrading dependencies..." --weight=10
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies "$pkg_dependencies"
ynh_install_extra_app_dependencies --repo="https://deb.torproject.org/torproject.org" --package="$pkg_dependencies_extra" --key="https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc"
#================================================= #=================================================
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE