Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "---- UPDATE PERMISSION example.net IMAGES ----"
- HOST="ftp.example.net"
- USER="usernmae"
- PASS="password"
- FTPURL="ftp://$USER:$PASS@$HOST"
- lftp <<EOF
- set ftp:ssl-allow no
- set ftp:passive-mode true
- set ftp:list-options -a
- open $FTPURL
- chmod -R 0777 --verbose /public_html/images/classes
- chmod -R 0777 --verbose /public_html/images/sponsors
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement