Răsfoiți Sursa

Makes changing ip status more graceful

cmstew 5 ani în urmă
părinte
comite
996904f681
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      bin/v-change-sys-ip-status

+ 1 - 1
bin/v-change-sys-ip-status

@@ -36,7 +36,7 @@ if [ "$web_domains" -ne '0' ] && [ "$sys_user" != "$ip_owner" ]; then
     check_result "$E_INUSE" "ip $ip is used"
 fi
 if [ "$ip_owner" != "admin" ] && [ "$ip_status" == "shared" ]; then
-    check_result "$E_INVALID" "Only the 'admin' user can have a shared ip"
+    $HESTIA/bin/v-change-sys-ip-owner $ip admin
 fi
 
 # Perform verification if read-only mode is enabled