Created
August 9, 2020 05:16
-
-
Save samyok/28ba980dd4572666aa7d3d0040f69380 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf phpBB3; | |
if [ -f "phpBB-3.2.9.zip" ]; then | |
echo "phpBB 3.2.9 already exists. Installing with current zip file."; | |
sleep 1; | |
else | |
wget https://github.com/Nepaltechguy2/scioly-gallery-docker/releases/download/0.1/phpBB-3.2.9.zip; | |
fi | |
unzip phpBB-3.2.9.zip; | |
echo "Getting gallery code"; | |
cd phpBB3; | |
git clone https://github.com/Nepaltechguy2/scioly-gallery.git; | |
if [ -f "albums.zip" ]; then | |
echo "albums already exists. Installing with current albums.zip file"; | |
sleep 1; | |
else | |
wget https://github.com/Nepaltechguy2/scioly-gallery-docker/releases/download/0.1/albums.zip; | |
fi | |
unzip albums.zip; | |
cd ..; | |
echo "Install complete. Starting Docker..."; | |
sleep 1; | |
docker-compose up -d; | |
echo "Docker working! Configuring permissions..." | |
sleep 0.5; | |
docker-compose exec apache chown -R www-data:www-data /var/www/html/; | |
echo "\nEverything is working! Go to port 8080 to configure phpBB3. Remove the phpBB3/install folder when you are done"; | |
echo ""; | |
echo "Run docker-compose up to see live logs." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment