Maintenance: Added ShellCheck for linting of shell scripts.

This commit is contained in:
Martin Gruner 2021-06-17 14:19:07 +00:00
parent 837a9bd45c
commit 333d4aef8c
2 changed files with 12 additions and 5 deletions

View file

@ -13,6 +13,14 @@ rubocop:
- bundle install -j $(nproc) --path vendor
- bundle exec rubocop --parallel
shellcheck:
<<: *template_pre
image: koalaman/shellcheck-alpine:stable
before_script:
- echo "Disable default before_script."
script:
- shellcheck -S error $(find . -name "*.sh" | grep -v "/vendor/")
coffeelint:
<<: *template_pre
script:

View file

@ -97,10 +97,9 @@ sudo -u "${USER}" -H bash -l -c 'cd ~/zammad && RAILS_ENV=production rake db:mig
sudo -u "${USER}" -H bash -l -c 'cd ~/zammad && RAILS_ENV=production rake db:seed'
sudo -u "${USER}" -H bash -l -c 'cd ~/zammad && RAILS_ENV=production rake assets:precompile'
cp "${HOMEDIR}/zammad/script/init.d/zammad /etc/init.d/zammad"
cp "${HOMEDIR}/zammad/script/init.d/zammad" /etc/init.d/zammad
chmod +x /etc/init.d/zammad
if [ "$OS" = "Debian" ]; then
update-rc.d zammad defaults
fi