home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix play server setup.
[config]
/
all_new_2018
/
setup_plomlombot.sh
diff --git
a/all_new_2018/setup_plomlombot.sh
b/all_new_2018/setup_plomlombot.sh
index 1de8ae2d7d7d13f70593f3df3eea77afef20c2d9..3c9efa341fd8f8cf11119e0390df0b39fdccb1b1 100755
(executable)
--- a/
all_new_2018/setup_plomlombot.sh
+++ b/
all_new_2018/setup_plomlombot.sh
@@
-11,25
+11,27
@@
gpg_key="$1"
config_tree_prefix="${HOME}/config/all_new_2018/"
irclogs_dir=/var/www/html/irclogs
irclogs_pw_dir=/var/www/irclogs_pw
config_tree_prefix="${HOME}/config/all_new_2018/"
irclogs_dir=/var/www/html/irclogs
irclogs_pw_dir=/var/www/irclogs_pw
-cp "${config_tree_prefix}"/user_
script
s/plomlombot_daemon.sh /home/plom/
+cp "${config_tree_prefix}"/user_
file
s/plomlombot_daemon.sh /home/plom/
chown plom:plom /home/plom/plomlombot_daemon.sh
chown plom:plom /home/plom/plomlombot_daemon.sh
-apt -y install screen python3-venv gnupg
+apt -y install screen python3-venv gnupg
dirmngr
keyservers='sks-keyservers.net/ keys.gnupg.net'
set +e
while true; do
do_break=0
keyservers='sks-keyservers.net/ keys.gnupg.net'
set +e
while true; do
do_break=0
- for keyserver in $(echo "${keyservers}"; do
+ for keyserver in $(echo "${keyservers}"
)
; do
su plom -c "gpg --no-tty --keyserver $keyserver --recv-key ${gpg_key}"
if [ $? -eq "0" ]; then
do_break=1
break
fi
echo "Attempt with keyserver ${keyserver} unsuccessful, trying other."
su plom -c "gpg --no-tty --keyserver $keyserver --recv-key ${gpg_key}"
if [ $? -eq "0" ]; then
do_break=1
break
fi
echo "Attempt with keyserver ${keyserver} unsuccessful, trying other."
+ done
if [ "${do_break}" -eq "1" ]; then
break
fi
done
set -e
if [ "${do_break}" -eq "1" ]; then
break
fi
done
set -e
+# TODO: We may remove dirmngr here if only this script installed it.
su plom -c "cd && git clone /var/public_repos/plomlombot-irc"
systemctl enable /etc/systemd/system/plomlombot.service
service plomlombot start
su plom -c "cd && git clone /var/public_repos/plomlombot-irc"
systemctl enable /etc/systemd/system/plomlombot.service
service plomlombot start