mirror of
https://github.com/YunoHost-Apps/technitium-dns_ynh.git
synced 2024-09-03 20:26:36 +02:00
try2fix
This commit is contained in:
parent
ba5c85016a
commit
8f094fa48e
3 changed files with 14 additions and 5 deletions
|
@ -4,6 +4,9 @@
|
|||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
# dependencies used by the app
|
||||
pkg_dependencies="dotnet-sdk-6.0"
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
|
|
|
@ -71,20 +71,24 @@ DEB_VERSION=$(sed 's/\..*//' /etc/debian_version)
|
|||
case $DEB_VERSION in
|
||||
|
||||
10)
|
||||
ynh_install_extra_app_dependencies --repo="deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/10/prod buster main" --package="aspnetcore-runtime-6.0"
|
||||
ynh_exec_warn_less wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
|
||||
ynh_exec_warn_less dpkg -i packages-microsoft-prod.deb
|
||||
rm packages-microsoft-prod.deb
|
||||
|
||||
;;
|
||||
|
||||
11)
|
||||
ynh_install_extra_app_dependencies --repo="deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/11/prod bullseye main" --package="aspnetcore-runtime-6.0"
|
||||
ynh_exec_warn_less wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
|
||||
ynh_exec_warn_less dpkg -i packages-microsoft-prod.deb
|
||||
rm packages-microsoft-prod.deb
|
||||
;;
|
||||
|
||||
*)
|
||||
repo=""
|
||||
echo -n "ummmmmm"
|
||||
ynh_install_extra_app_dependencies --repo=$repo --package="aspnetcore-runtime-6.0"
|
||||
echo "NOT SUPPORTED!!!"
|
||||
;;
|
||||
esac
|
||||
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
|
|
|
@ -70,6 +70,8 @@ ynh_remove_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Removing dependencies..." --time --weight=1
|
||||
|
||||
ynh_exec_warn_less apt removepackages-microsoft-prod
|
||||
|
||||
# Remove metapackage and its dependencies
|
||||
ynh_remove_app_dependencies
|
||||
|
||||
|
|
Loading…
Reference in a new issue