From edf770e69bd379ba29ce07b614549bfb6ffa3045 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 26 Sep 2019 02:36:55 +0200 Subject: Adapted for OpenShift (cron, syslog, and ssh services are not running) --- root/usr/bin/fix-permissions | 7 +++++++ root/usr/bin/rungogs | 3 +++ 2 files changed, 10 insertions(+) create mode 100755 root/usr/bin/fix-permissions create mode 100755 root/usr/bin/rungogs (limited to 'root/usr') diff --git a/root/usr/bin/fix-permissions b/root/usr/bin/fix-permissions new file mode 100755 index 0000000..b90d208 --- /dev/null +++ b/root/usr/bin/fix-permissions @@ -0,0 +1,7 @@ +#!/bin/sh +# Fix permissions on the given directory to allow group read/write of +# regular files and execute of directories. +chown -R git "$1" +chgrp -R 0 "$1" +chmod -R g+rw "$1" +find "$1" -type d -exec chmod g+x {} + diff --git a/root/usr/bin/rungogs b/root/usr/bin/rungogs new file mode 100755 index 0000000..0167152 --- /dev/null +++ b/root/usr/bin/rungogs @@ -0,0 +1,3 @@ +#! /bin/sh + +/app/gogs/gogs web -- cgit v1.2.1