You've already forked baupm-core
Small fixes, typos, etc
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
# Fetch emails
|
||||
*/5 * * * * /home/bitnami/apps/redmine/fetch-mails >/dev/null 2>&1
|
||||
*/5 * * * * /opt/bitnami/redmine/fetch-mails >/dev/null 2>&1
|
||||
|
||||
# Update Letsencrypt Certificate
|
||||
#### Don't forget to set the --email and --domain arguments! ####
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Email-address of the system
|
||||
mail_address=""
|
||||
mail_address="${REDMINE_IMAP_ADDRESS}"
|
||||
|
||||
# Email-Account username and password
|
||||
mail_username="$mail_address"
|
||||
mail_password=""
|
||||
mail_password="${REDMINE_IMAP_PASSWORD}"
|
||||
|
||||
# IMAP-Server address and port
|
||||
mail_host=""
|
||||
mail_port=993
|
||||
mail_ssl=true
|
||||
mail_host="${REDMINE_IMAP_HOST}"
|
||||
mail_port=${REDMINE_IMAP_PORT:-993}
|
||||
mail_ssl=${REDMINE_IMAP_SSL:-true}
|
||||
|
||||
# IMAP-INBOX-Folder
|
||||
mail_folder="INBOX"
|
||||
|
||||
# Default project and tracker
|
||||
project="meta"
|
||||
tracker="Support"
|
||||
project="${REDMINE_IMAP_DEFAULT_PROJECT:-"meta"}"
|
||||
tracker="${REDMINE_IMAP_DEFAULT_TRACKER:-"Support"}"
|
||||
|
||||
# Redmine Settings
|
||||
unknown_user_action="ignore"
|
||||
allow_override="all"
|
||||
no_permission_check=true
|
||||
app_root="/home/bitnami/apps/redmine/htdocs"
|
||||
app_root="/opt/bitnami/redmine"
|
||||
|
||||
if [[ -n "$mail_address" ]] && [[ -n "$mail_username" ]] && [[ -n "$mail_password" ]] && [[ -n "$mail_host" ]]; then
|
||||
sudo /opt/bitnami/ruby/bin/rake -f $app_root/Rakefile --silent redmine:email:receive_imap RAILS_ENV="production" \
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
TARGET="/home/bitnami/apps/redmine/htdocs/public/themes/Ossig"
|
||||
GIT_DIR="/repo/ossig-theme.git"
|
||||
BRANCH="master"
|
||||
RESTART_APACHE=""
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
# shellcheck disable=SC2162
|
||||
while read oldrev newrev ref; do
|
||||
if [ "$ref" = "refs/heads/$BRANCH" ]; then
|
||||
echo "Ref $ref received. Deploying ${BRANCH} branch to production..."
|
||||
git --work-tree=$TARGET --git-dir=$GIT_DIR checkout -f $BRANCH
|
||||
|
||||
if [[ -n $RESTART_APACHE ]]; then
|
||||
echo "Restarting Apache Webserver"
|
||||
sudo "$HOME/stack/ctlscript.sh" restart apache >>/dev/null 2>&1
|
||||
fi
|
||||
else
|
||||
echo "Ref $ref received. Doing nothing: only the ${BRANCH} branch may be deployed on this server."
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user