Created
September 11, 2018 16:00
-
-
Save bohack/af9afe066d6601573d0060b1eb657680 to your computer and use it in GitHub Desktop.
Deployment Script for TFS to PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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