Update cryptpad-install.sh

This commit is contained in:
Slaviša Arežina 2025-03-13 15:50:49 +01:00 committed by GitHub
parent 711e0e4784
commit b211224ec4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,6 +43,7 @@ cd cryptpad
$STD git checkout $RELEASE $STD git checkout $RELEASE
$STD npm ci $STD npm ci
$STD npm run install:components $STD npm run install:components
$STD npm run build
cp config/config.example.js config/config.js cp config/config.example.js config/config.js
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')
sed -i "51s/localhost/${IP}/g" /opt/cryptpad/config/config.js sed -i "51s/localhost/${IP}/g" /opt/cryptpad/config/config.js