mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
post_install is post_upgrade now
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
post_install() {
|
post_install() {
|
||||||
post_upgrade
|
post_upgrade
|
||||||
|
|
||||||
echo "==> Generating KVMD-Nginx certificate ..."
|
|
||||||
kvmd-gencert --do-the-thing
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
@@ -19,6 +16,11 @@ post_upgrade() {
|
|||||||
|
|
||||||
chown kvmd /var/lib/kvmd/msd || true
|
chown kvmd /var/lib/kvmd/msd || true
|
||||||
|
|
||||||
|
if [ ! -d /etc/kvmd/nginx/ssl ]; then
|
||||||
|
echo "==> Generating KVMD-Nginx certificate ..."
|
||||||
|
kvmd-gencert --do-the-thing
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d /etc/kvmd/vnc/ssl ]; then
|
if [ ! -d /etc/kvmd/vnc/ssl ]; then
|
||||||
echo "==> Generating KVMD-VNC certificate ..."
|
echo "==> Generating KVMD-VNC certificate ..."
|
||||||
kvmd-gencert --do-the-thing --vnc
|
kvmd-gencert --do-the-thing --vnc
|
||||||
|
|||||||
Reference in New Issue
Block a user