Commit 10c092e4 authored by Miloš Diviš's avatar Miloš Diviš
Browse files

run sed on index.php only if index.php was downloaded

parent ff9347ce
......@@ -21,7 +21,9 @@ echo '* setting maintenance mode on remote app'
scp -i $key_path $user@$server:$remote_dir/www/index.php temp/
if [-f temp/index.php)]; then
sed -i "s/\/\/\s*require '.maintenance.php';/require '.maintenance.php';/" temp/index.php
fi
rsync -az \
temp/index.php $user@$server:$remote_dir/www/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment