From c60eafc6a2a90a1429b078bd458f569570bc0f32 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Sat, 30 Nov 2024 16:02:26 +0100 Subject: [PATCH] feat: rootpass command --- dlinux | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlinux b/dlinux index fb17195..bc87709 100755 --- a/dlinux +++ b/dlinux @@ -19,6 +19,7 @@ $0 restart - Restart your container $0 info - Get info about your container $0 stats - Get your container memory usage statistics $0 time - Get your container expiration time +$0 rootpass - Reset root user password $0 key-time - Get your api key expiration time " } @@ -82,6 +83,11 @@ command_time() { call_api GET time | jq -r .expireDate } +command_rootpass() { + data=$(call_api GET rootpass) + echo "Your new root password is: $(echo $data | jq -r .newRootPass)" +} + command_key-time() { call_api GET key-time | jq -r .keyexpireString }