linux - rename cron
This commit is contained in:
parent
fd52bb7c8d
commit
a824e15684
@ -891,7 +891,7 @@ if [ "$OS" = "alpine" ] ; then
|
|||||||
CRON_PATH="/etc/crontabs/nginx"
|
CRON_PATH="/etc/crontabs/nginx"
|
||||||
else
|
else
|
||||||
CRON_SRC="/tmp/bunkerized-nginx/misc/cron-linux"
|
CRON_SRC="/tmp/bunkerized-nginx/misc/cron-linux"
|
||||||
CRON_PATH="/etc/cron.d/nginx"
|
CRON_PATH="/etc/cron.d/bunkerized-nginx"
|
||||||
fi
|
fi
|
||||||
do_and_check_cmd cp "$CRON_SRC" "$CRON_PATH"
|
do_and_check_cmd cp "$CRON_SRC" "$CRON_PATH"
|
||||||
do_and_check_cmd chown root:nginx "$CRON_PATH"
|
do_and_check_cmd chown root:nginx "$CRON_PATH"
|
||||||
|
|||||||
@ -64,16 +64,7 @@ sed -i "s@nginx ALL=(root:root) NOPASSWD: /opt/bunkerized-nginx/ui/linux.sh@@" /
|
|||||||
|
|
||||||
# Remove cron
|
# Remove cron
|
||||||
echo "[*] Remove cron"
|
echo "[*] Remove cron"
|
||||||
if [ "$OS" = "debian" ] || [ "$OS" = "ubuntu" ] ; then
|
do_and_check_cmd rm -f /etc/crond.d/bunkerized-nginx
|
||||||
CRON_PATH="/var/spool/cron/crontabs/nginx"
|
|
||||||
elif [ "$OS" = "centos" ] ; then
|
|
||||||
CRON_PATH="/var/spool/cron/nginx"
|
|
||||||
elif [ "$OS" = "alpine" ] ; then
|
|
||||||
CRON_PATH="/etc/crontabs/nginx"
|
|
||||||
fi
|
|
||||||
if [ -e "$CRON_PATH" ] ; then
|
|
||||||
do_and_check_cmd rm -f "$CRON_PATH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove /opt/bunkerized-nginx
|
# Remove /opt/bunkerized-nginx
|
||||||
if [ -e "/opt/bunkerized-nginx" ] ; then
|
if [ -e "/opt/bunkerized-nginx" ] ; then
|
||||||
|
|||||||
@ -13,4 +13,6 @@ rm -f /lib/systemd/system/anaconda.target.wants/*;\
|
|||||||
rm -f /lib/systemd/system/*tmpfiles*;\
|
rm -f /lib/systemd/system/*tmpfiles*;\
|
||||||
rm -f /lib/systemd/user/*tmpfiles*;\
|
rm -f /lib/systemd/user/*tmpfiles*;\
|
||||||
find /lib/systemd/ -type f -iname "*.service" -exec rm -f {} \;;\
|
find /lib/systemd/ -type f -iname "*.service" -exec rm -f {} \;;\
|
||||||
find /etc/systemd/ -type f -iname "*.service" -exec rm -f {} \;
|
find /etc/systemd/ -type f -iname "*.service" -exec rm -f {} \;;\
|
||||||
|
find /lib/systemd/ -type f -iname "*.timer" -exec rm -f {} \;;\
|
||||||
|
find /etc/systemd/ -type f -iname "*.timer" -exec rm -f {} \;
|
||||||
|
|||||||
@ -5,7 +5,6 @@
|
|||||||
<meta name="description" content="bunkerized-nginx user interface">
|
<meta name="description" content="bunkerized-nginx user interface">
|
||||||
<meta name="author" content="bunkerity">
|
<meta name="author" content="bunkerity">
|
||||||
<title>bunkerized-nginx-ui - {{ title }}</title>
|
<title>bunkerized-nginx-ui - {{ title }}</title>
|
||||||
<!-- TODO : favicon -->
|
|
||||||
<link rel="icon" type="image/png" href="img/favicon16.png" sizes="16x16">
|
<link rel="icon" type="image/png" href="img/favicon16.png" sizes="16x16">
|
||||||
<link rel="icon" type="image/png" href="img/favicon32.png" sizes="32x32">
|
<link rel="icon" type="image/png" href="img/favicon32.png" sizes="32x32">
|
||||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user