Skip to content

Commit 226c09a

Browse files
committed
Fix code order issue.
1 parent 100af9a commit 226c09a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

install/hst-migration.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
# Ubuntu 14.04, 16.04, 18.04
1010
#
1111

12+
HESTIA="/usr/local/hestia"
13+
RHOST='apt.hestiacp.com'
14+
os=$(head -n1 /etc/issue | cut -f 1 -d ' ')
15+
apt="/etc/apt/sources.list.d"
16+
1217
# Detect OS
1318
case $os in
1419
Debian) type="debian" ;;
@@ -21,6 +26,7 @@ if [ "$type" = "NoSupport" ]; then
2126
echo "Your OS is currently not supported."
2227
exit 1;
2328
fi
29+
2430
# Detect Codename
2531
if [ "$type" = "debian" ]; then
2632
codename="$(cat /etc/os-release |grep VERSION= |cut -f 2 -d \(|cut -f 1 -d \))"
@@ -34,10 +40,6 @@ if [ "$type" = "ubuntu" ]; then
3440
VERSION='ubuntu'
3541
fi
3642

37-
HESTIA="/usr/local/hestia"
38-
RHOST='apt.hestiacp.com'
39-
os=$(head -n1 /etc/issue | cut -f 1 -d ' ')
40-
apt="/etc/apt/sources.list.d"
4143
hestiacp="$HESTIA/install/$VERSION/$release"
4244

4345
# Am I root?

0 commit comments

Comments
 (0)