Commit aa90a121 authored by Miloš Diviš's avatar Miloš Diviš
Browse files

maintenance mode sed corrected

parent 082efad2
......@@ -47,9 +47,7 @@ scp -q -i $key_path $user@$server:$remote_dir/www/index.php temp/
# set maintance mode if app is on remote
if [ -f temp/index.php ]
then
sed -i "s/\/\/\s*require '.maintenance.php';/require '.maintenance.php';/" \
temp/index.php
sed -ri "/^(<\?php|<\?)/a require '.maintenance.php';" temp/index.php
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