Add nascent support for Fedora
This commit is contained in:
4 files changed
+6
-6
No files matched your search
+2
-2
@@ -12,7 +12,7 @@ set -eo pipefail
|
|||||||
# That's good because it prevents our output overlapping with wget's.
|
# That's good because it prevents our output overlapping with wget's.
|
||||||
# It also means that we can't run a partially downloaded script.
|
# It also means that we can't run a partially downloaded script.
|
||||||
|
|
||||||
SUPPORTED_VERSIONS="Debian [9, 10], CentOS [7], Ubuntu [16.04, 18.04, 20.04]"
|
SUPPORTED_VERSIONS="Debian [9, 10], CentOS [7], Fedora (partial) [33, 34], Ubuntu [16.04, 18.04, 20.04]"
|
||||||
|
|
||||||
log-fail() {
|
log-fail() {
|
||||||
declare desc="log fail formatter"
|
declare desc="log fail formatter"
|
||||||
@@ -131,7 +131,7 @@ install-dokku-from-package() {
|
|||||||
debian | ubuntu)
|
debian | ubuntu)
|
||||||
install-dokku-from-deb-package "$@"
|
install-dokku-from-deb-package "$@"
|
||||||
;;
|
;;
|
||||||
centos | rhel)
|
centos | fedora | rhel)
|
||||||
install-dokku-from-rpm-package "$@"
|
install-dokku-from-rpm-package "$@"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ trigger-events-install() {
|
|||||||
# shellcheck disable=SC2174
|
# shellcheck disable=SC2174
|
||||||
mkdir -m 775 -p "$DOKKU_LOGS_DIR"
|
mkdir -m 775 -p "$DOKKU_LOGS_DIR"
|
||||||
case "$DOKKU_DISTRO" in
|
case "$DOKKU_DISTRO" in
|
||||||
arch | debian | centos | rhel)
|
arch | debian | centos | fedora | rhel)
|
||||||
chgrp dokku "$DOKKU_LOGS_DIR"
|
chgrp dokku "$DOKKU_LOGS_DIR"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -28,7 +28,7 @@ trigger-events-install() {
|
|||||||
if [[ ! -f "$DOKKU_EVENTS_LOGFILE" ]]; then
|
if [[ ! -f "$DOKKU_EVENTS_LOGFILE" ]]; then
|
||||||
touch "$DOKKU_EVENTS_LOGFILE"
|
touch "$DOKKU_EVENTS_LOGFILE"
|
||||||
case "$DOKKU_DISTRO" in
|
case "$DOKKU_DISTRO" in
|
||||||
arch | debian | centos | rhel)
|
arch | debian | centos | fedora | rhel)
|
||||||
chgrp dokku "$DOKKU_EVENTS_LOGFILE"
|
chgrp dokku "$DOKKU_EVENTS_LOGFILE"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ trigger-nginx-vhosts-install() {
|
|||||||
echo "%dokku ALL=(ALL) NOPASSWD:/usr/bin/systemctl reload $NGINX_INIT_NAME, $NGINX_BIN -t, $NGINX_BIN -t -c *" >"$NGINX_SUDOERS_FILE"
|
echo "%dokku ALL=(ALL) NOPASSWD:/usr/bin/systemctl reload $NGINX_INIT_NAME, $NGINX_BIN -t, $NGINX_BIN -t -c *" >"$NGINX_SUDOERS_FILE"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
centos | rhel)
|
centos | fedora | rhel)
|
||||||
echo "%dokku ALL=(ALL) NOPASSWD:/usr/bin/systemctl reload $NGINX_INIT_NAME, $NGINX_BIN -t, $NGINX_BIN -t -c *" >"$NGINX_SUDOERS_FILE"
|
echo "%dokku ALL=(ALL) NOPASSWD:/usr/bin/systemctl reload $NGINX_INIT_NAME, $NGINX_BIN -t, $NGINX_BIN -t -c *" >"$NGINX_SUDOERS_FILE"
|
||||||
echo "Defaults:dokku !requiretty" >>"$NGINX_SUDOERS_FILE"
|
echo "Defaults:dokku !requiretty" >>"$NGINX_SUDOERS_FILE"
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ fn-nginx-vhosts-nginx-init-cmd() {
|
|||||||
sudo /sbin/service "$NGINX_INIT_NAME" "$CMD"
|
sudo /sbin/service "$NGINX_INIT_NAME" "$CMD"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
arch | centos | rhel)
|
arch | centos | fedora | rhel)
|
||||||
sudo /usr/bin/systemctl "$CMD" "$NGINX_INIT_NAME"
|
sudo /usr/bin/systemctl "$CMD" "$NGINX_INIT_NAME"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in new issue
Block a user