From 5ae7312c3cec4bd5cee8ef8262aa57e7d42603e7 Mon Sep 17 00:00:00 2001 From: saint Date: Tue, 31 Dec 2024 00:14:59 +1100 Subject: [PATCH] Minor fix for calcom for removal of test db change on install --- lib/calcom.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/calcom.sh b/lib/calcom.sh index 3016705..f41de18 100644 --- a/lib/calcom.sh +++ b/lib/calcom.sh @@ -703,25 +703,25 @@ EOF docker exec postgresql psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE calcomsaml TO calcom" &> /dev/null # Insert admin user - docker exec postgresql psql -U postgres -d calcom -c " - INSERT INTO \"User\" (username, \"fullName\", email, \"hashedPassword\", role) - VALUES ('admin', 'Administrator', 'admin@$DOMAIN', crypt('$ADMINPASS', gen_salt('bf')), 'ADMIN') - ON CONFLICT DO NOTHING;" + # docker exec postgresql psql -U postgres -d calcom -c " + #INSERT INTO \"User\" (username, \"fullName\", email, \"hashedPassword\", role) + #VALUES ('admin', 'Administrator', 'admin@$DOMAIN', crypt('$ADMINPASS', gen_salt('bf')), 'ADMIN') + #ON CONFLICT DO NOTHING;" # Accept AGPLv3 license - docker exec postgresql psql -U postgres -d calcom -c " - INSERT INTO \"License\" (type, accepted) - VALUES ('AGPLv3', true) - ON CONFLICT DO NOTHING;" + # docker exec postgresql psql -U postgres -d calcom -c " + #INSERT INTO \"License\" (type, accepted) + #VALUES ('AGPLv3', true) + #ON CONFLICT DO NOTHING;" # Enable default apps - DEFAULT_APPS=("CalDav" "Scheduling" "Availability") # Add more apps as needed - for app in "${DEFAULT_APPS[@]}"; do - docker exec postgresql psql -U postgres -d calcom -c " - INSERT INTO \"App\" (name, enabled) - VALUES ('$app', true) - ON CONFLICT DO NOTHING;" - done + # DEFAULT_APPS=("CalDav" "Scheduling" "Availability") # Add more apps as needed + # for app in "${DEFAULT_APPS[@]}"; do + # docker exec postgresql psql -U postgres -d calcom -c " + # INSERT INTO \"App\" (name, enabled) + # VALUES ('$app', true) + # ON CONFLICT DO NOTHING;" + # done # Create cron task in /federated/bin