Skip to content
Snippets Groups Projects
Commit c3b4a664 authored by Bob Mottram's avatar Bob Mottram
Browse files

Directory creation

parent 7c61119f
No related branches found
No related tags found
No related merge requests found
......@@ -300,9 +300,10 @@ function install_pixelfed {
exit 3568356
fi
if [ -d "/var/www/$PIXELFED_DOMAIN_NAME/htdocs" ]; then
rm -rf "/var/www/$PIXELFED_DOMAIN_NAME/htdocs"
if [ -d "/var/www/$PIXELFED_DOMAIN_NAME" ]; then
rm -rf "/var/www/$PIXELFED_DOMAIN_NAME"
fi
mkdir "/var/www/$PIXELFED_DOMAIN_NAME"
if [ -d /repos/pixelfed ]; then
mkdir "/var/www/$PIXELFED_DOMAIN_NAME/htdocs"
cp -r -p /repos/pixelfed/. "/var/www/$PIXELFED_DOMAIN_NAME/htdocs"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment