File: vm.install

package info (click to toggle)
cockpit-files 38-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 268,428 kB
  • sloc: javascript: 695,197; cpp: 11,141; python: 7,798; sh: 832; makefile: 163; xml: 89
file content (13 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# image-customize script to prepare a bots VM for testing this application
# The application package will be installed separately
set -eu

# don't force https:// (self-signed cert)
mkdir -p /etc/cockpit
printf "[WebService]\\nAllowUnencrypted=true\\n" > /etc/cockpit/cockpit.conf

if systemctl is-active -q firewalld.service; then
    firewall-cmd --add-service=cockpit --permanent
fi
systemctl enable cockpit.socket