Compare commits

..

No commits in common. "3db776e749356d18e30d8c977da4786419e694a5" and "b651b404f67368ad6600029c9e318c81f1fa8ce6" have entirely different histories.

2 changed files with 16 additions and 5 deletions

View File

@ -24,6 +24,7 @@ var_cpu="2"
var_ram="2048"
var_os="ubuntu"
var_version="22.04"
var_version="20.04"
variables
color
catch_errors

View File

@ -13,6 +13,15 @@ setting_up_container
network_check
update_os
ubuntuversion=$(lsb_release -r | awk '{print $2}' | cut -d . -f1)
if [ "$ubuntuversion" = "18" ] || [ "$ubuntuversion" -le "18" ]; then
apt install sudo wget -y
sudo apt install -y software-properties-common
sudo add-apt-repository universe -y
apt update -y
apt update --fix-missing -y
fi
msg_info "Installing Dependencies"
$STD apt-get install -y curl sudo git mc
$STD apt-get install -y make zip net-tools
@ -48,20 +57,21 @@ echo '{"Product" : "'"Shinobi"'" , "Branch" : "'"master"'" , "Version" : "'"$git
msg_ok "Cloned Shinobi"
msg_info "Installing Database"
sqluser="root"
sqlpass="root"
sqlpass=""
echo "mariadb-server mariadb-server/root_password password $sqlpass" | debconf-set-selections
echo "mariadb-server mariadb-server/root_password_again password $sqlpass" | debconf-set-selections
$STD apt-get install -y mariadb-server
service mysql start
mysql -u "$sqluser" -p"$sqlpass" -e "source sql/user.sql" || true
sqluser="root"
mysql -e "source sql/user.sql" || true
mysql -e "source sql/framework.sql" || true
msg_ok "Installed Database"
msg_info "Installing Shinobi"
cp conf.sample.json conf.json
cronKey=$(head -c 1024 < /dev/urandom | sha256sum | awk '{print substr($1,1,29)}')
sed -i -e 's/Shinobi/'"$cronKey"'/g' conf.json
cp super.sample.json super.json
msg_info "Installing Shinobi"
$STD npm i npm -g
$STD npm install --unsafe-perm
$STD npm install pm2@latest -g