hopefully the final fix, missed dir perms

This commit is contained in:
Benjamyn Love 2019-02-20 23:09:41 +11:00
parent dea3a844c0
commit 54a456c0cf

View File

@ -9,7 +9,7 @@ WORKINGDIR=$CURRENTDIR"/paste"
USERNAME=paste USERNAME=paste
NGINXGROUP=nginx NGINXGROUP=nginx
REPO="https://git.vps.benjamyn-testing.com/benjamyn/paste.git" REPO="https://git.vps.benjamyn-testing.com/benjamyn/paste.git"
PROTOCOL='https://' PROTOCOL='http://'
URL=testing.int.local URL=testing.int.local
echo "Getting the repo from $REPO" echo "Getting the repo from $REPO"
@ -37,6 +37,7 @@ cp -v blank.service /etc/systemd/system/paste.service
echo "Setting permissions on the files" echo "Setting permissions on the files"
chown -R $USERNAME:$NGINXGROUP $CURRENTDIR chown -R $USERNAME:$NGINXGROUP $CURRENTDIR
chmod 0755 $CURRENTDIR
echo "Installing nginx config to /etc/nginx/conf.d" echo "Installing nginx config to /etc/nginx/conf.d"
cp paste.conf /etc/nginx/conf.d/paste.conf cp paste.conf /etc/nginx/conf.d/paste.conf