Last active
February 13, 2019 21:03
-
-
Save sergeykuzmich/220d736c123d7d80391920aeb7847941 to your computer and use it in GitHub Desktop.
Domain setup template_file
This file contains 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
#!/bin/bash | |
mv /var/www/html /var/www/html.old | |
mv /var/www/wordpress /var/www/html | |
chown -Rf www-data:www-data /var/www/html | |
sed -i "s/\$domain/${domain}/g" /etc/apache2/sites-enabled/000-default.conf | |
a2enconf block-xmlrpc | |
service apache2 restart | |
cp /etc/skel/.bashrc /root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment