mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
fabric updates
This commit is contained in:
parent
49fab18d40
commit
f180f080f9
2
util/DigitalOceanMarketplace/fabfile.py
vendored
2
util/DigitalOceanMarketplace/fabfile.py
vendored
@ -14,6 +14,8 @@ def clean_up():
|
||||
"""
|
||||
Clean up remote machine before taking snapshot.
|
||||
"""
|
||||
run("apt-get -y update")
|
||||
run("apt-get -y upgrade")
|
||||
run("rm -rf /tmp/* /var/tmp/*")
|
||||
run("history -c")
|
||||
run("cat /dev/null > /root/.bash_history")
|
||||
|
@ -9,10 +9,18 @@ cat <<EOF
|
||||
Welcome to your Bitwarden server
|
||||
https://bitwarden.com
|
||||
|
||||
Self-hosted documentation:
|
||||
https://help.bitwarden.com/article/install-on-premise/
|
||||
Complete documentation:
|
||||
https://help.bitwarden.com/hosting/
|
||||
|
||||
Configuration:
|
||||
Configuration changes can be made in `/root/bwdata/config.yml` and
|
||||
`/root/bwdata/env/global.override.env`.
|
||||
|
||||
Common commands:
|
||||
/root/bitwarden.sh stop
|
||||
/root/bitwarden.sh restart
|
||||
/root/bitwarden.sh rebuild
|
||||
|
||||
********************************************************************************
|
||||
To delete this message of the day: rm -rf $(readlink -f ${0})
|
||||
EOF
|
||||
|
@ -5,16 +5,32 @@
|
||||
# ref: https://help.bitwarden.com/article/install-on-premise/
|
||||
#
|
||||
|
||||
echo -e ''
|
||||
echo -e 'Installing Bitwarden...'
|
||||
echo -e ''
|
||||
|
||||
/root/bitwarden.sh install
|
||||
|
||||
echo -e ''
|
||||
echo -e 'Starting Bitwarden containers...'
|
||||
echo -e ''
|
||||
|
||||
/root/bitwarden.sh start
|
||||
|
||||
echo -e ''
|
||||
echo -e 'Waiting for Bitwarden database container to come online...'
|
||||
|
||||
sleep 30s
|
||||
|
||||
echo -e 'Initializing Bitwarden database...'
|
||||
echo -e ''
|
||||
|
||||
/root/bitwarden.sh updatedb
|
||||
|
||||
echo -e ''
|
||||
echo -e 'Bitwarden installation complete.'
|
||||
echo -e ''
|
||||
|
||||
#
|
||||
# Setup Bitwarden update cron
|
||||
# ref: https://help.bitwarden.com/article/updating-on-premise/
|
||||
|
Loading…
Reference in New Issue
Block a user