From 04a49c7d0db7c909b42d87c0af6565c9f52541e0 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 24 Aug 2022 13:45:39 -0700 Subject: [PATCH] add install.sh --- install.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..a19c44e --- /dev/null +++ b/install.sh @@ -0,0 +1,16 @@ +#!/bin/bash +useradd --no-create-home --home-dir /srv/www/html/panel --shell /usr/sbin/nologin --system --user-group vpanel +cp bin/vpanel-verify-access.sh /usr/local/bin/ +chmod 755 /usr/local/bin/vpanel-verify-access.sh +cp -a etc/* /etc/ +chmod 440 /etc/sudoers.d/vpanel +a2enconf vpanel +service php8.1-fpm restart +service apache2 restart +cp -a panel /srv/www/html/ +mkdir /srv/www/html/panel/tmp +git clone https://github.com/bcosca/fatfree-core.git /srv/www/html/panel/f3 +rm -r /srv/www/html/panel/f3/.git +find /srv/www/html/panel -type d -exec chmod 755 {} + +find /srv/www/html/panel -type f -exec chmod 644 {} + +chown -R vpanel:vpanel /srv/www/html/panel