Skip to content

Instantly share code, notes, and snippets.

@bohack
Created September 11, 2018 16:00
Show Gist options
  • Save bohack/af9afe066d6601573d0060b1eb657680 to your computer and use it in GitHub Desktop.
Save bohack/af9afe066d6601573d0060b1eb657680 to your computer and use it in GitHub Desktop.
Deployment Script for TFS to PHP
#!/bin/bash
DEPLOYPATH="/var/www/websitea/"
filename=$DEPLOYPATH'rwpermissions.txt'
echo Start
while read p; do
echo runner=$DEPLOYPATH$p
runner=$DEPLOYPATH${p/$'\r'/}
chmod -R 0666 $runner
chcon -v -R --type=httpd_sys_rw_content_t $runner
done < $filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment