We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4dc4b commit 5935b24Copy full SHA for 5935b24
install/hst-migration.sh
@@ -11,7 +11,6 @@
11
12
HESTIA="/usr/local/hestia"
13
os=$(head -n1 /etc/issue | cut -f 1 -d ' ')
14
-codename=$(cat /etc/os-release |grep VERSION= |cut -f 2 -d \(|cut -f 1 -d \))
15
apt="/etc/apt/sources.list.d"
16
17
# Am I root?
@@ -33,6 +32,15 @@ if [ "$type" = "NoSupport" ]; then
33
32
exit 1;
34
fi
35
+# Detect Codename
36
+if [ "$type" = "debian" ]; then
37
+ codename="$(cat /etc/os-release |grep VERSION= |cut -f 2 -d \(|cut -f 1 -d \))"
38
+fi
39
+
40
+if [ "$type" = "ubuntu" ]; then
41
+ codename="$(lsb_release -s -c)"
42
43
44
# Check if Vesta is installed
45
if [ -f /usr/local/vesta/conf/vesta.conf ]; then
46
source /usr/local/vesta/conf/vesta.conf
0 commit comments