mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
kvmd-gencert --do-the-thing
This commit is contained in:
parent
7d1afc869c
commit
62dd6b96b5
@ -2,7 +2,7 @@ post_install() {
|
||||
post_upgrade
|
||||
|
||||
echo "==> Generating KVMD certificate ..."
|
||||
kvmd-gencert
|
||||
kvmd-gencert --do-the-thing
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
|
||||
@ -24,11 +24,20 @@
|
||||
set -x
|
||||
set -e
|
||||
|
||||
export LC_ALL=C
|
||||
|
||||
if [ `whoami` != root ]; then
|
||||
echo "Only root can do that"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$1" != --do-the-thing ]; then
|
||||
echo "This script will generate new self-signed SSL certificates for KVMD Nginx"
|
||||
echo "and put them to /etc/kvmd/nginx/ssl. If you're sure of what you're doing,"
|
||||
echo "append the option '--do-the-thing' to execute."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p /etc/kvmd/nginx/ssl
|
||||
cd /etc/kvmd/nginx/ssl
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user