You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
649 B

5 years ago
#!/bin/bash
5 years ago
BASE="http://2.238.194.8/iolovolio/"
5 years ago
BASE_PARSED=$(echo $BASE | sed 's/\//\\\//g')
cd public
5 years ago
for f in *.php
5 years ago
do
sed -i "s/href\=\"\//href\=\"$BASE_PARSED/g" "$f"
sed -i "s/src\=\"\//src\=\"$BASE_PARSED/g" "$f"
sed -i "s/src\=\"\.\//src\=\"$BASE_PARSED/g" "$f"
done
cd ..
#scp -r -i ./auth/marketmind.pem ./public/* ubuntu@18.194.83.82:/var/www/anesacademy.com/
5 years ago
# rsync -avz --delete -e "ssh -i ./auth/marketmind.pem" ./public/* ubuntu@18.194.83.82:/var/www/anesacademy.com/
rsync -avz --delete -e "ssh -p2222" ./public/* cdr@2.238.194.8:/www/iolovolio/
# scp -r ./public/.htaccess cdr@2.238.194.8:/www/iolovolio/.htaccess