Docker: Add install_photoprism.sh bootstrap script
This commit is contained in:
parent
93682aa8f5
commit
e643bdb26b
2 changed files with 21 additions and 0 deletions
18
docker/examples/cloud/install_photoprism.sh
Normal file
18
docker/examples/cloud/install_photoprism.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# PhotoPrism Cloud Init Script
|
||||
# ============================
|
||||
#
|
||||
# Put this script in
|
||||
#
|
||||
# /var/lib/cloud/scripts/per-instance
|
||||
#
|
||||
# so that it runs once when the server is booting for the first time:
|
||||
#
|
||||
# cd /var/lib/cloud/scripts/per-instance
|
||||
# curl -fsSL https://dl.photoprism.org/docker/cloud/install_photoprism.sh > install_photoprism.sh
|
||||
# chmod 700 install_photoprism.sh
|
||||
#
|
||||
# Enjoy!
|
||||
|
||||
bash <(curl -s https://dl.photoprism.org/docker/cloud/setup.sh)
|
|
@ -1,5 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# PhotoPrism Cloud Setup Script
|
||||
# =============================
|
||||
|
||||
# check if user is root
|
||||
if [[ $(id -u) != "0" ]]; then
|
||||
echo "You need to be root to run this script." 1>&2
|
||||
|
|
Loading…
Reference in a new issue