Browse Source

Remove OS Detection

Alexandros Ioannides 6 years ago
parent
commit
df8d4cfe59
1 changed files with 1 additions and 17 deletions
  1. 1 17
      bin/v-update-dns-templates

+ 1 - 17
bin/v-update-dns-templates

@@ -16,29 +16,13 @@ restart=$1
 source $HESTIA/func/main.sh
 source $HESTIA/func/main.sh
 source $HESTIA/conf/hestia.conf
 source $HESTIA/conf/hestia.conf
 
 
-# Detect OS
-case $(head -n1 /etc/issue | cut -f 1 -d ' ') in
-    Debian)     type="debian" ;;
-    Ubuntu)     type="ubuntu" ;;
-    *)          type="NoSupport" ;;
-esac
-
-# Detect version
-if [ "$type" = "ubuntu" ] || [ "$type" = "debian" ]; then
-    type="deb"
-else
-    echo "Error: can't detect supported os"
-    log_event "$E_NOTEXIST"
-    exit $E_NOTEXIST
-fi
-
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                       Action                             #
 #                       Action                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
 # Update templates
 # Update templates
-cp -rf $HESTIA/install/$type/templates/dns $HESTIA/data/templates/
+cp -rf $HESTIA/install/deb/templates/dns $HESTIA/data/templates/
 
 
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#