Skip to content

Commit 996904f

Browse files
committed
Makes changing ip status more graceful
1 parent 311b723 commit 996904f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-change-sys-ip-status

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ "$web_domains" -ne '0' ] && [ "$sys_user" != "$ip_owner" ]; then
3636
check_result "$E_INUSE" "ip $ip is used"
3737
fi
3838
if [ "$ip_owner" != "admin" ] && [ "$ip_status" == "shared" ]; then
39-
check_result "$E_INVALID" "Only the 'admin' user can have a shared ip"
39+
$HESTIA/bin/v-change-sys-ip-owner $ip admin
4040
fi
4141

4242
# Perform verification if read-only mode is enabled

0 commit comments

Comments
 (0)