Update mariadb_setup.sh
This commit is contained in:
parent
7fdadc252a
commit
86a0e98f07
1 changed files with 3 additions and 5 deletions
|
@ -58,6 +58,9 @@ apt-get update >/dev/null
|
|||
apt-get install -y mariadb-server &>/dev/null
|
||||
|
||||
echo -e "${CHECKMARK} \e[1;92m Installing Adminer... \e[0m"
|
||||
mkdir /var/log/apache2
|
||||
chmod 750 /var/log/apache2
|
||||
chown root:adm /var/log/apache2
|
||||
sudo apt install adminer -y &>/dev/null
|
||||
sudo a2enconf adminer &>/dev/null
|
||||
sudo systemctl reload apache2 &>/dev/null
|
||||
|
@ -75,11 +78,6 @@ ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,3840
|
|||
EOF
|
||||
systemctl daemon-reload
|
||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
service apache2 stop
|
||||
mkdir -p /var/log/apache2
|
||||
chmod 750 /var/log/apache2
|
||||
chown root:adm /var/log/apache2
|
||||
service apache2 start
|
||||
|
||||
echo -e "${CHECKMARK} \e[1;92m Cleanup... \e[0m"
|
||||
rm -rf /mariadb_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*
|
||||
|
|
Loading…
Reference in a new issue