Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sergeykuzmich
Last active February 13, 2019 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergeykuzmich/220d736c123d7d80391920aeb7847941 to your computer and use it in GitHub Desktop.
Save sergeykuzmich/220d736c123d7d80391920aeb7847941 to your computer and use it in GitHub Desktop.
Domain setup template_file
#!/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