Skip to content
Snippets Groups Projects
Commit c7561a07 authored by root's avatar root
Browse files

update

parent 4718dda1
No related branches found
No related tags found
No related merge requests found
......@@ -36,13 +36,13 @@ docker-compose up -d mariadb
docker-compose up -d php-fpm
echo "Download wordpress / imcpress"
docker run -it --rm -v $(pwd)/data/html:/root/test --network=container:lamp_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test && git clone --depth 1 --recurse-submodules http://wmj5kiic7b6kjplpbvwadnht2nh2qnkbnqtcv3dyvpqtz7ssbssftxid.onion/imcpress/imcpress.git && mv ./imcpress/* .;rm -Rf ./imcpress"
docker run -it --rm -v $(pwd)/data/html:/root/test --network=container:toast_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test && git clone --depth 1 --recurse-submodules http://wmj5kiic7b6kjplpbvwadnht2nh2qnkbnqtcv3dyvpqtz7ssbssftxid.onion/imcpress/imcpress.git && mv ./imcpress/* .;rm -Rf ./imcpress"
echo "Download plugins"
docker run -it --rm -v $(pwd)/data/html:/root/test -v $(pwd)/data/imcpress:/root/imcpress --network=container:lamp_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test/wp-content/plugins && curl -L -o fakerpress.0.5.3.zip https://downloads.wordpress.org/plugin/fakerpress.0.5.3.zip && apt install unzip && unzip fakerpress.0.5.3.zip && rm fakerpress.0.5.3.zip"
docker run -it --rm -v $(pwd)/data/html:/root/test -v $(pwd)/data/imcpress:/root/imcpress --network=container:toast_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test/wp-content/plugins && curl -L -o fakerpress.0.5.3.zip https://downloads.wordpress.org/plugin/fakerpress.0.5.3.zip && apt install unzip && unzip fakerpress.0.5.3.zip && rm fakerpress.0.5.3.zip"
echo "Backup folder of original files"
docker run -it --rm -v $(pwd)/data/html:/root/test --network=container:lamp_tor-router-debian_1 php-fpm:1.0 sh -c "rm -Rf /root/test/imcpress_bak;cp -R /root/test /root/imcpress_bak;mv /root/imcpress_bak /root/test"
docker run -it --rm -v $(pwd)/data/html:/root/test --network=container:toast_tor-router-debian_1 php-fpm:1.0 sh -c "rm -Rf /root/test/imcpress_bak;cp -R /root/test /root/imcpress_bak;mv /root/imcpress_bak /root/test"
generate_password_09AZaz
DBPass=$password
......
......@@ -34,7 +34,7 @@ docker-compose up -d apache
docker-compose up -d mariadb
docker-compose up -d php-fpm
docker run -it --rm -v $(pwd)/data/html:/root/test --network=container:lamp_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test && curl --output phpMyAdmin.zip -L https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip && apt install unzip && unzip phpMyAdmin.zip -d ./phpmyadmin && rm phpMyAdmin.zip && mv ./phpmyadmin/phpMyAdmin-5.2.1-all-languages/* ./phpmyadmin;rm -Rf ./phpmyadmin/phpMyAdmin-5.2.1-all-languages "
docker run -it --rm -v $(pwd)/data/html:/root/test --network=container:toast_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test && curl --output phpMyAdmin.zip -L https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip && apt install unzip && unzip phpMyAdmin.zip -d ./phpmyadmin && rm phpMyAdmin.zip && mv ./phpmyadmin/phpMyAdmin-5.2.1-all-languages/* ./phpmyadmin;rm -Rf ./phpmyadmin/phpMyAdmin-5.2.1-all-languages "
generate_password_09AZaz
DBPass=$password
......
......@@ -34,7 +34,7 @@ docker-compose up -d apache
docker-compose up -d mariadb
docker-compose up -d php-fpm
docker run -it --rm -v $(pwd)/data/html:/root/test -v $(pwd)/data/imcpress:/root/imcpress --network=container:lamp_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test/ && curl -L -o spip-v4.2.4.zip https://files.spip.net/spip/archives/spip-v4.2.4.zip && unzip spip-v4.2.4.zip && rm spip-v4.2.4.zip && chmod -R 0777 /root/test && cp /root/test/htaccess.txt /root/test/.htaccess"
docker run -it --rm -v $(pwd)/data/html:/root/test -v $(pwd)/data/imcpress:/root/imcpress --network=container:toast_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test/ && curl -L -o spip-v4.2.4.zip https://files.spip.net/spip/archives/spip-v4.2.4.zip && unzip spip-v4.2.4.zip && rm spip-v4.2.4.zip && chmod -R 0777 /root/test && cp /root/test/htaccess.txt /root/test/.htaccess"
wait_mariaDB_starting
......
......@@ -36,10 +36,10 @@ docker-compose up -d mariadb
docker-compose up -d php-fpm
echo "Download wordpress"
docker run -it --rm -v $(pwd)/data/html:/root/test --network=container:lamp_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test && git clone --depth 1 https://github.com/WordPress/WordPress.git && mv ./WordPress/* .;rm -Rf ./WordPress"
docker run -it --rm -v $(pwd)/data/html:/root/test --network=container:toast_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test && git clone --depth 1 https://github.com/WordPress/WordPress.git && mv ./WordPress/* .;rm -Rf ./WordPress"
echo "Download plugins"
docker run -it --rm -v $(pwd)/data/html:/root/test -v $(pwd)/data/imcpress:/root/imcpress --network=container:lamp_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test/wp-content/plugins && curl -L -o fakerpress.0.5.3.zip https://downloads.wordpress.org/plugin/fakerpress.0.5.3.zip && apt install unzip && unzip fakerpress.0.5.3.zip && rm fakerpress.0.5.3.zip"
docker run -it --rm -v $(pwd)/data/html:/root/test -v $(pwd)/data/imcpress:/root/imcpress --network=container:lamp_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test/wp-content/plugins && curl -L -o unbloater.1.5.5.zip https://downloads.wordpress.org/plugin/unbloater.1.5.5.zip && apt install unzip && unzip unbloater.1.5.5.zip && rm unbloater.1.5.5.zip"
docker run -it --rm -v $(pwd)/data/html:/root/test -v $(pwd)/data/imcpress:/root/imcpress --network=container:toast_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test/wp-content/plugins && curl -L -o fakerpress.0.5.3.zip https://downloads.wordpress.org/plugin/fakerpress.0.5.3.zip && apt install unzip && unzip fakerpress.0.5.3.zip && rm fakerpress.0.5.3.zip"
docker run -it --rm -v $(pwd)/data/html:/root/test -v $(pwd)/data/imcpress:/root/imcpress --network=container:toast_tor-router-debian_1 php-fpm:1.0 sh -c "cd /root/test/wp-content/plugins && curl -L -o unbloater.1.5.5.zip https://downloads.wordpress.org/plugin/unbloater.1.5.5.zip && apt install unzip && unzip unbloater.1.5.5.zip && rm unbloater.1.5.5.zip"
chmod 777 ./data/html/wp-content/plugins/
generate_password_09AZaz
......
......@@ -23,7 +23,7 @@ docker-compose up -d mariadb
docker-compose up -d php-fpm
echo "Restore folder of original files"
docker run -it --rm -v $(pwd)/data/html:/root/test --network=container:lamp_tor-router-debian_1 php-fpm:1.0 sh -c "cp -R /root/test/imcpress_bak /root/; cd /root/test; rm -Rf *;cp -R /root/imcpress_bak /root/test;cp -R /root/imcpress_bak/* /root/test/"
docker run -it --rm -v $(pwd)/data/html:/root/test --network=container:toast_tor-router-debian_1 php-fpm:1.0 sh -c "cp -R /root/test/imcpress_bak /root/; cd /root/test; rm -Rf *;cp -R /root/imcpress_bak /root/test;cp -R /root/imcpress_bak/* /root/test/"
generate_password_09AZaz
DBPass=$password
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment