You've already forked baupm-core
Small fixes, typos, etc
This commit is contained in:
@@ -6,7 +6,7 @@ Common modifications to run Redmine as project management tool on medium- and la
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd {redmine_dir}/plugins
|
cd {redmine_dir}/plugins
|
||||||
git clone http://laptop.local:4000/magdev/baupm-core.git baupm_core
|
git clone https://hub.bundespruefstelle.ch/magdev/baupm_core.git baupm_core
|
||||||
```
|
```
|
||||||
|
|
||||||
Now restart redmine and you're done.
|
Now restart redmine and you're done.
|
||||||
|
|||||||
2
init.rb
2
init.rb
@@ -8,7 +8,7 @@ Redmine::Plugin.register :baupm_core do
|
|||||||
name 'BauPM Core Plugin'
|
name 'BauPM Core Plugin'
|
||||||
url 'https://git.bundespruefstelle.ch/magdev/baupm_core'
|
url 'https://git.bundespruefstelle.ch/magdev/baupm_core'
|
||||||
author 'Marco Grätsch'
|
author 'Marco Grätsch'
|
||||||
author_url 'https://github.com/magdev'
|
author_url 'https://git.bundespruefstelle.ch/magdev'
|
||||||
description "Common modifications for BauPM"
|
description "Common modifications for BauPM"
|
||||||
version '0.1.0'
|
version '0.1.0'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
# Fetch emails
|
# 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
|
# Update Letsencrypt Certificate
|
||||||
#### Don't forget to set the --email and --domain arguments! ####
|
#### Don't forget to set the --email and --domain arguments! ####
|
||||||
|
|||||||
@@ -1,29 +1,29 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Email-address of the system
|
# Email-address of the system
|
||||||
mail_address=""
|
mail_address="${REDMINE_IMAP_ADDRESS}"
|
||||||
|
|
||||||
# Email-Account username and password
|
# Email-Account username and password
|
||||||
mail_username="$mail_address"
|
mail_username="$mail_address"
|
||||||
mail_password=""
|
mail_password="${REDMINE_IMAP_PASSWORD}"
|
||||||
|
|
||||||
# IMAP-Server address and port
|
# IMAP-Server address and port
|
||||||
mail_host=""
|
mail_host="${REDMINE_IMAP_HOST}"
|
||||||
mail_port=993
|
mail_port=${REDMINE_IMAP_PORT:-993}
|
||||||
mail_ssl=true
|
mail_ssl=${REDMINE_IMAP_SSL:-true}
|
||||||
|
|
||||||
# IMAP-INBOX-Folder
|
# IMAP-INBOX-Folder
|
||||||
mail_folder="INBOX"
|
mail_folder="INBOX"
|
||||||
|
|
||||||
# Default project and tracker
|
# Default project and tracker
|
||||||
project="meta"
|
project="${REDMINE_IMAP_DEFAULT_PROJECT:-"meta"}"
|
||||||
tracker="Support"
|
tracker="${REDMINE_IMAP_DEFAULT_TRACKER:-"Support"}"
|
||||||
|
|
||||||
# Redmine Settings
|
# Redmine Settings
|
||||||
unknown_user_action="ignore"
|
unknown_user_action="ignore"
|
||||||
allow_override="all"
|
allow_override="all"
|
||||||
no_permission_check=true
|
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
|
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" \
|
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