Sha256: 7f8c0a2ae98755906e1eff379f2913af57cd13641ec2ea0bca43201105e53826

Contents?: true

Size: 485 Bytes

Versions: 7

Compression:

Stored size: 485 Bytes

Contents

#!/bin/bash

# check ownership on /home/app/myapp
APP_UID=`stat --format '%u' /home/app/myapp`
APP_GID=`stat --format '%g' /home/app/myapp`

echo "Setting app user uid/gid to $APP_UID/$APP_GID"
groupmod -g $APP_GID app
usermod -u $APP_UID -g $APP_GID app

echo "Creating log, tmp/pids directories"
su app -l -c 'cd /home/app/myapp && mkdir -p log tmp/pids'

echo "chowning node_modules, log, tmp directories (created from volumes)"
cd /home/app/myapp && chown app node_modules log tmp

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
imagine_cms-5.2.6 docker/startup/101_mkdir.sh
imagine_cms-5.2.5 docker/startup/101_mkdir.sh
imagine_cms-5.2.4 docker/startup/101_mkdir.sh
imagine_cms-5.2.3 docker/startup/101_mkdir.sh
imagine_cms-5.2.2 docker/startup/101_mkdir.sh
imagine_cms-5.2.1 docker/startup/101_mkdir.sh
imagine_cms-5.2.0 docker/startup/101_mkdir.sh