Code Monkey home page Code Monkey logo

mautic-vagrant's Issues

refactor bash scripts

Are you interested in updated shell scripts?

(refactor) ๐Ÿ‘Œ install-mautic.sh

- [x] โšก๏ธ improve permission update speed
- [x] ๐Ÿ‘Œ  update ownership and permissions
- [x] ๐Ÿ”จ refactor with variables
- [x] ๐ŸŽจ bash unofficial strict mode

- [x] ๐Ÿ’ฅ "set -o errexit" is in play
eg: partial diff
# "unofficial" bash strict mode
# See: http://redsymbol.net/articles/unofficial-bash-strict-mode
set -o errexit  # Exit when simple command fails               'set -e'
set -o errtrace # Exit on error inside any functions or subshells.
set -o nounset  # Trigger error when expanding unset variables 'set -u'
set -o pipefail # Do not hide errors within pipes              'set -o pipefail'
IFS=$'\n\t'

declare mautic_root='/var/www/mautic'
declare mautic_version='2.15.1'
declare www_user='www-data'

# Fix ownership and permissions of Mautic files
chown -fR "${www_user}":"${www_user}" "${mautic_root}"
find "${mautic_root}" -type d \! -perm /o+x -exec chmod -f 755 '{}' \;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.