Browse Source

Merge branch 'fix/2020-10_change-ip-owner-on-shared' into staging/fixes

Kristan Kenney 5 years ago
parent
commit
226ce1990c
1 changed files with 1 additions and 1 deletions
  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