Skip to content

Commit

Permalink
Update Cloudtopolis.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
TheToddLuci0 authored Jun 1, 2022
1 parent 975e54a commit f27a617
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Cloudtopolis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,22 @@ fi

sudo mkdir Cloudtopolis > /dev/null 2>&1 ; sudo mkdir Cloudtopolis/mysql > /dev/null 2>&1 ; sudo mkdir Cloudtopolis/inc > /dev/null 2>&1 ; sudo mkdir Cloudtopolis/import > /dev/null 2>&1 ; sudo mkdir Cloudtopolis/files > /dev/null 2>&1

UUID=$(cat /proc/sys/kernel/random/uuid)
if sudo test -f "$(pwd)/Cloudtopolis/.creds" ; then
echo -e "\e[32;1m[+] Found credentials file, using those\e[37;1m"
UUID=$(cat Cloudtopolis/.creds)
else
UUID=$(cat /proc/sys/kernel/random/uuid)
sudo sh -c "echo -n $UUID > $(pwd)/Cloudtopolis/.creds"
fi

echo -e "\e[0m"
echo -e "\e[32;1m[+] Installing MySQL Database..\e[37;1m"
sudo docker run --rm --name mysql -v $(pwd)/Cloudtopolis/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=$UUID -d mysql:5.7 > /dev/null 2>&1
sudo docker run --rm --name mysql -v $(pwd)/Cloudtopolis/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD="$UUID" -d mysql:5.7 > /dev/null 2>&1
echo -e "\e[37;1mDone!"

echo -e "\e[0m"
echo -e "\e[32;1m[+] Installing Hashtopolis..\e[37;1m"
sudo docker run --rm --name hashtopolis --link mysql:mysql -v $(pwd)/Cloudtopolis/inc:/var/www/html/inc -v $(pwd)/Cloudtopolis/import:/var/www/html/import -v $(pwd)/Cloudtopolis/files:/var/www/html/files -e H8_USER="admin" -e H8_PASS=$UUID -d -p 8000:80 kpeiruza/hashtopolis > /dev/null 2>&1
sudo docker run --rm --name hashtopolis --link mysql:mysql -v $(pwd)/Cloudtopolis/inc:/var/www/html/inc -v $(pwd)/Cloudtopolis/import:/var/www/html/import -v $(pwd)/Cloudtopolis/files:/var/www/html/files -e H8_USER="admin" -e H8_PASS="$UUID" -d -p 8000:80 kpeiruza/hashtopolis > /dev/null 2>&1
echo -e "\e[37;1mDone!"

if [[ $CustomVPS ]] ; then
Expand Down

0 comments on commit f27a617

Please sign in to comment.