Commit ede451b7 authored by Johannes Barthel's avatar Johannes Barthel
Browse files

remove unnecessary debian postinst

parent e9638863
......@@ -53,7 +53,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cleanup-meeting-data"
version = "0.2.1"
version = "0.2.2"
dependencies = [
"lazy_static",
"regex",
......
[package]
name = "cleanup-meeting-data"
version = "0.2.1"
version = "0.2.2"
authors = ["Johannes <johannes@senfcall.de>"]
edition = "2018"
......
#!/bin/bash -ve
# get api secret
BBB_API_URL=https://$(hostname -f)/bigbluebutton/
BBB_API_SECRET=$(bbb-conf --secret | grep Secret | head -n1 | awk '{print $2}')
ENV_FILE=/etc/cleanup-meeting-data/.env
# write configuration file
mkdir -p /etc/cleanup-meeting-data/
[ -e $ENV_FILE ] && rm $ENV_FILE
cat > $ENV_FILE <<EOF
BBB_API_URL=$BBB_API_URL
BBB_API_SECRET=$BBB_API_SECRET
EOF
# enable in system
systemctl daemon-reload
systemctl enable cleanup-meeting-data.timer
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment