Skip to content

Commit f9db98c

Browse files
committed
Small fix in OS detection.
1 parent fb5191a commit f9db98c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

install/upgrade/0.9.8-29.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ mkdir -p $HESTIA_BACKUP/packages/
2020

2121
# Detect OS
2222
case $(head -n1 /etc/issue | cut -f 1 -d ' ') in
23-
Debian) type="debian" ;;
24-
Ubuntu) type="ubuntu" ;;
25-
*) type="NoSupport" ;;
23+
Debian) os="debian" ;;
24+
Ubuntu) os="ubuntu" ;;
2625
esac
2726

2827
# Detect release for Debian
@@ -93,9 +92,9 @@ if [ ! -z "$MAIL_SYSTEM" ]; then
9392
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/z-push_signing.key > /dev/null 2>&1
9493
else
9594
if [ "$release" -eq 8 ]; then
96-
$zpush_os='Debian_8.0'
95+
zpush_os='Debian_8.0'
9796
else
98-
$zpush_os='Debian_9.0'
97+
zpush_os='Debian_9.0'
9998
fi
10099

101100
echo "deb http://repo.z-hub.io/z-push:/final/$zpush_os/ /" > $apt/z-push.list

0 commit comments

Comments
 (0)