This commit is contained in:
tremor021 2025-03-13 14:03:32 +01:00
parent a81f3cce0d
commit 91ba7b8cb6

View File

@ -44,6 +44,8 @@ $STD git checkout $RELEASE
$STD npm ci $STD npm ci
$STD npm run install:components $STD npm run install:components
cp config/config.example.js config/config.js cp config/config.example.js config/config.js
IP=$(hostname -I | awk '{print $1}')
sed -i "51s/localhost/${IP}/g" /opt/cryptpad/config/config.js
sed -i "80s#//httpAddress: 'localhost'#httpAddress: '0.0.0.0'#g" /opt/cryptpad/config/config.js sed -i "80s#//httpAddress: 'localhost'#httpAddress: '0.0.0.0'#g" /opt/cryptpad/config/config.js
if [[ "$onlyoffice" =~ ^[Yy]$ ]]; then if [[ "$onlyoffice" =~ ^[Yy]$ ]]; then
$STD bash -c "./install-onlyoffice.sh --accept-license" $STD bash -c "./install-onlyoffice.sh --accept-license"