1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +01:00
bitwarden-server/util/DigitalOceanMarketplace/scripts/01-setup-first-run.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
683 B
Bash
Raw Normal View History

2019-02-21 18:39:02 +01:00
#!/bin/bash
#
# Scripts in this directory are run during the build process.
# each script will be uploaded to /tmp on your build droplet,
# given execute permissions and run. The cleanup process will
# remove the scripts from your build system after they have run
# if you use the build_image task.
#
2019-02-21 19:10:35 +01:00
#
# Make MOTD and boot script executable
#
chmod +x /var/lib/cloud/scripts/per-instance/001_onboot
chmod +x /etc/update-motd.d/99-bitwarden-welcome
2019-02-21 18:39:02 +01:00
#
# Setup First Run Script
# ref: https://github.com/digitalocean/marketplace-partners#running-commands-on-first-login
2019-02-21 18:39:02 +01:00
#
chmod +x /opt/bitwarden/install-bitwarden.sh
echo '/opt/bitwarden/install-bitwarden.sh' >> /root/.bashrc