mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Update mydomain.sh
This commit is contained in:
parent
686009a6a3
commit
e732adb36d
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ if [ $# -eq 0 ]
|
|||
if [ $# -eq 1 ]
|
||||
then
|
||||
echo "$(tput setaf 1)Changinging newsblur_web/docker_local_settings.py:$(tput setaf 2) localhost to $1$(tput sgr 0)"
|
||||
sed -i'.bak' -e "/NEWSBLUR_URL/ s/localhost/$1/" -e "/NEWSBLUR_SESSION_COOKIE/ s/localhost/$1/" './newsblur_web/docker_local_settings.py'
|
||||
sed -i'.bak' -e "/NEWSBLUR_URL/ s/localhost/$1/" -e "/SESSION_COOKIE_DOMAIN/ s/localhost/$1/" './newsblur_web/docker_local_settings.py'
|
||||
head -20 './newsblur_web/docker_local_settings.py'
|
||||
echo "$(tput setaf 1)Changinging config/fixtures/bootstrap.json:$(tput setaf 2) localhost to $1$(tput sgr 0)"
|
||||
sed -i'.bak' "/domain/ s/localhost/$1/" './config/fixtures/bootstrap.json'
|
||||
|
@ -15,7 +15,7 @@ if [ $# -eq 0 ]
|
|||
if [ $# -eq 2 ]
|
||||
then
|
||||
echo "$(tput setaf 1)Changinging newsblur_web/docker_local_settings.py: $(tput setaf 2)$1 to $2$(tput sgr 0)"
|
||||
sed -i'bak' -e "/NEWSBLUR_URL/ s/$1/$2/" -e "/NEWSBLUR_SESSION_COOKIE/ s/$1/$2/" './newsblur_web/docker_local_settings.py'
|
||||
sed -i'bak' -e "/NEWSBLUR_URL/ s/$1/$2/" -e "/SESSION_COOKIE_DOMAIN/ s/$1/$2/" './newsblur_web/docker_local_settings.py'
|
||||
head -20 './newsblur_web/docker_local_settings.py'
|
||||
echo "$(tput setaf 1)Changinging config/fixtures/bootstrap.json: $(tput setaf 2)$1 to $2$(tput sgr 0)"
|
||||
sed -i'bak' -e "/domain/ s/$1/$2/" './config/fixtures/bootstrap.json'
|
||||
|
|
Loading…
Add table
Reference in a new issue