mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-23 03:34:58 +00:00
Donetick: create selfhosted.yaml from the example (#17992)
Since 0.1.82 the release only ships config/selfhosted.yaml.example, so the token sed failed on a missing file (#17985).
This commit is contained in:
1 parent
c0b3b84eef
commit
440460f0ea
1 file changed
+1
@@ -21,6 +21,7 @@ fetch_and_deploy_gh_release "donetick" "donetick/donetick" "prebuild" "latest" "
|
||||
|
||||
msg_info "Setup Donetick"
|
||||
cd /opt/donetick
|
||||
[[ -f config/selfhosted.yaml ]] || cp config/selfhosted.yaml.example config/selfhosted.yaml
|
||||
TOKEN=$(openssl rand -hex 16)
|
||||
sed -i -e "s/change_this_to_a_secure_random_string_32_characters_long/${TOKEN}/g" config/selfhosted.yaml
|
||||
msg_ok "Setup Donetick"
|
||||
|
||||
Reference in new issue
Block a user