mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-02 04:14:28 +07:00
feat(scripts): add script to replace domain
This commit is contained in:
parent
8f836e54e3
commit
a859f01fa7
7
scripts/replace-domain
Executable file
7
scripts/replace-domain
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
CURRENT_DOMAIN="khuedoan.com"
|
||||
|
||||
git grep "${CURRENT_DOMAIN}" -- apps platform system scripts | cut -d ':' -f1 | uniq | while read p; do
|
||||
sed -i "s/${CURRENT_DOMAIN}/${1}/g" $p
|
||||
done
|
Loading…
Reference in New Issue
Block a user