20 lines
497 B
Bash
20 lines
497 B
Bash
#!/bin/bash
|
|
SERVER_IP=172.20.32.234
|
|
OLD_SERVER_IP=172.20.32.202
|
|
|
|
|
|
# forgeplus
|
|
#sed -i 's/172.20.32.202/172.20.32.234/g' forgeplus/config/database.yml
|
|
#sed -i 's/172.20.32.202/172.20.32.234/g' forgeplus/config/configuration.yml
|
|
|
|
sed -i 's/'${OLD_SERVER_IP}'/'${SERVER_IP}'/g' forgeplus/config/database.yml
|
|
sed -i 's/'${OLD_SERVER_IP}'/'${SERVER_IP}'/g' forgeplus/config/configuration.yml
|
|
|
|
sed -i 's/'${OLD_SERVER_IP}'/'${SERVER_IP}'/g' gitea/gitea/conf/app.ini
|
|
|
|
mkdir /data/
|
|
cp -rf gitea /data/
|
|
|
|
|
|
|