Commit 4a878f48 authored by Finn's avatar Finn 🌵

User must have write access to the destination for file to work

parent 14884890
Pipeline #2915 failed with stage
in 14 minutes and 51 seconds
......@@ -24,16 +24,16 @@
],
"provisioners": [
{
"type": "file",
"source": "files/nginx.conf",
"destination": "/tmp/image-host.conf"
}, {
"type": "shell",
"scripts": [
"scripts/base-packages.sh",
"scripts/image-host.sh",
"scripts/clean.sh"
]
}, {
"type": "file",
"source": "files/nginx.conf",
"destination": "/etc/nginx/sites-enabled/image-host.conf"
}
]
}
......@@ -5,3 +5,4 @@ sudo mkdir /var/www/images /var/lib/image-uploads
sudo useradd -d /var/lib/image-uploads image-uploads
sudo chown image-uploads /var/www/images /var/lib/image-uploads
sudo rm -rfv /etc/nginx/sites-enabled/*
sudo mv /tmp/nginx.conf /etc/nginx/sites-enabled/image-host.conf
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment