Browse Source

Fix init script

Ernesto Nicolás Carrea 5 years ago
parent
commit
a1fc1e4d07
1 changed files with 4 additions and 1 deletions
  1. 4 1
      bin/setup/init.inc

+ 4 - 1
bin/setup/init.inc

@@ -16,6 +16,8 @@ hestia_setup_init() {
     chmod 660 $HESTIA/log/*
     chmod 660 $HESTIA/log/*
     chmod 770 $HESTIA/data/sessions
     chmod 770 $HESTIA/data/sessions
 
 
+    memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
+
     if [ "$OS_BASE" = 'rhel' ]; then
     if [ "$OS_BASE" = 'rhel' ]; then
         # FIXME: Hestia scripts should not assume ip is located in /bin
         # FIXME: Hestia scripts should not assume ip is located in /bin
         ln -s /usr/sbin/ip /bin/ip > /dev/null 2>&1
         ln -s /usr/sbin/ip /bin/ip > /dev/null 2>&1
@@ -42,7 +44,8 @@ deb https://apt.hestiacp.com/ $OS_CODENAME main
 EOL
 EOL
         apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A189E93654F0B0E5 > /dev/null 2>&1
         apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A189E93654F0B0E5 > /dev/null 2>&1
     elif [ "$OS_BASE" = 'rhel' ]; then
     elif [ "$OS_BASE" = 'rhel' ]; then
-        dnf config-manager --set-enabled extras powertools
+        dnf config-manager --set-enabled extras powertools > /dev/null 2>&1
+        dnf config-manager --set-enabled extras PowerTools > /dev/null 2>&1
         dnf -y install epel-release
         dnf -y install epel-release
         dnf config-manager --set-enabled epel epel-modular
         dnf config-manager --set-enabled epel epel-modular