mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-24 13:35:29 +00:00
tweaks
This commit is contained in:
parent
c927e1737c
commit
071984d133
@ -73,7 +73,9 @@ function cleanup_ctid() {
|
|||||||
pct destroy $CTID
|
pct destroy $CTID
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
if systemctl is-active -q ping-instances.service; then
|
||||||
|
systemctl stop ping-instances.service
|
||||||
|
fi
|
||||||
function select_storage() {
|
function select_storage() {
|
||||||
local CLASS=$1
|
local CLASS=$1
|
||||||
local CONTENT
|
local CONTENT
|
||||||
@ -117,6 +119,7 @@ function select_storage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Test if required variables are set
|
# Test if required variables are set
|
||||||
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
[[ "${CTID:-}" ]] || die "You need to set 'CTID' variable."
|
[[ "${CTID:-}" ]] || die "You need to set 'CTID' variable."
|
||||||
|
|
||||||
# Test if ID is valid
|
# Test if ID is valid
|
||||||
@ -167,6 +170,9 @@ pct start "$CTID"
|
|||||||
info "LXC container '$CTID' was successfully created."
|
info "LXC container '$CTID' was successfully created."
|
||||||
echo "TurnKey Core Password" >>~/turnkey-core.creds # file is located in the Proxmox root directory
|
echo "TurnKey Core Password" >>~/turnkey-core.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-core.creds #run `cat turnkey-core.creds` in the Proxmox shell
|
echo $PASS >>~/turnkey-core.creds #run `cat turnkey-core.creds` in the Proxmox shell
|
||||||
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
|
systemctl start ping-instances.service
|
||||||
|
fi
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
@ -73,7 +73,9 @@ function cleanup_ctid() {
|
|||||||
pct destroy $CTID
|
pct destroy $CTID
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
if systemctl is-active -q ping-instances.service; then
|
||||||
|
systemctl stop ping-instances.service
|
||||||
|
fi
|
||||||
function select_storage() {
|
function select_storage() {
|
||||||
local CLASS=$1
|
local CLASS=$1
|
||||||
local CONTENT
|
local CONTENT
|
||||||
@ -117,6 +119,7 @@ function select_storage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Test if required variables are set
|
# Test if required variables are set
|
||||||
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
[[ "${CTID:-}" ]] || die "You need to set 'CTID' variable."
|
[[ "${CTID:-}" ]] || die "You need to set 'CTID' variable."
|
||||||
|
|
||||||
# Test if ID is valid
|
# Test if ID is valid
|
||||||
@ -167,6 +170,9 @@ pct start "$CTID"
|
|||||||
info "LXC container '$CTID' was successfully created."
|
info "LXC container '$CTID' was successfully created."
|
||||||
echo "TurnKey File Server Password" >>~/turnkey-fileserver.creds # file is located in the Proxmox root directory
|
echo "TurnKey File Server Password" >>~/turnkey-fileserver.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-fileserver.creds #run `cat turnkey-fileserver.creds` in the Proxmox shell
|
echo $PASS >>~/turnkey-fileserver.creds #run `cat turnkey-fileserver.creds` in the Proxmox shell
|
||||||
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
|
systemctl start ping-instances.service
|
||||||
|
fi
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
@ -73,7 +73,9 @@ function cleanup_ctid() {
|
|||||||
pct destroy $CTID
|
pct destroy $CTID
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
if systemctl is-active -q ping-instances.service; then
|
||||||
|
systemctl stop ping-instances.service
|
||||||
|
fi
|
||||||
function select_storage() {
|
function select_storage() {
|
||||||
local CLASS=$1
|
local CLASS=$1
|
||||||
local CONTENT
|
local CONTENT
|
||||||
@ -117,6 +119,7 @@ function select_storage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Test if required variables are set
|
# Test if required variables are set
|
||||||
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
[[ "${CTID:-}" ]] || die "You need to set 'CTID' variable."
|
[[ "${CTID:-}" ]] || die "You need to set 'CTID' variable."
|
||||||
|
|
||||||
# Test if ID is valid
|
# Test if ID is valid
|
||||||
@ -167,6 +170,9 @@ pct start "$CTID"
|
|||||||
info "LXC container '$CTID' was successfully created."
|
info "LXC container '$CTID' was successfully created."
|
||||||
echo "TurnKey GitLab Password" >>~/turnkey-gitlab.creds # file is located in the Proxmox root directory
|
echo "TurnKey GitLab Password" >>~/turnkey-gitlab.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-gitlab.creds #run `cat turnkey-gitlab.creds` in the Proxmox shell
|
echo $PASS >>~/turnkey-gitlab.creds #run `cat turnkey-gitlab.creds` in the Proxmox shell
|
||||||
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
|
systemctl start ping-instances.service
|
||||||
|
fi
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
@ -73,7 +73,9 @@ function cleanup_ctid() {
|
|||||||
pct destroy $CTID
|
pct destroy $CTID
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
if systemctl is-active -q ping-instances.service; then
|
||||||
|
systemctl stop ping-instances.service
|
||||||
|
fi
|
||||||
function select_storage() {
|
function select_storage() {
|
||||||
local CLASS=$1
|
local CLASS=$1
|
||||||
local CONTENT
|
local CONTENT
|
||||||
@ -117,6 +119,7 @@ function select_storage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Test if required variables are set
|
# Test if required variables are set
|
||||||
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
[[ "${CTID:-}" ]] || die "You need to set 'CTID' variable."
|
[[ "${CTID:-}" ]] || die "You need to set 'CTID' variable."
|
||||||
|
|
||||||
# Test if ID is valid
|
# Test if ID is valid
|
||||||
@ -167,6 +170,9 @@ pct start "$CTID"
|
|||||||
info "LXC container '$CTID' was successfully created."
|
info "LXC container '$CTID' was successfully created."
|
||||||
echo "TurnKey ownCloud Password" >>~/turnkey-owncloud.creds # file is located in the Proxmox root directory
|
echo "TurnKey ownCloud Password" >>~/turnkey-owncloud.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-owncloud.creds #run `cat turnkey-owncloud.creds` in the Proxmox shell
|
echo $PASS >>~/turnkey-owncloud.creds #run `cat turnkey-owncloud.creds` in the Proxmox shell
|
||||||
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
|
systemctl start ping-instances.service
|
||||||
|
fi
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
Loading…
Reference in New Issue
Block a user