feat: rootpass command

This commit is contained in:
CyberL1 2024-11-30 16:02:26 +01:00
parent 5373bcf569
commit c60eafc6a2

6
dlinux
View File

@ -19,6 +19,7 @@ $0 restart - Restart your container
$0 info - Get info about your container $0 info - Get info about your container
$0 stats - Get your container memory usage statistics $0 stats - Get your container memory usage statistics
$0 time - Get your container expiration time $0 time - Get your container expiration time
$0 rootpass - Reset root user password
$0 key-time - Get your api key expiration time $0 key-time - Get your api key expiration time
" "
} }
@ -82,6 +83,11 @@ command_time() {
call_api GET time | jq -r .expireDate 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() { command_key-time() {
call_api GET key-time | jq -r .keyexpireString call_api GET key-time | jq -r .keyexpireString
} }