Minor script updates

- Make init.d scripts executable
- Change shebang from bash to sh
- Alpinize zz-cleanup.sh
This commit is contained in:
Disassembler 2017-12-19 19:22:36 +01:00
parent 5e398988d5
commit 182c9eb10b
10 changed files with 10 additions and 11 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# For production builds change to DEBUG=0 or comment the line entirely
export DEBUG=1
@ -6,7 +6,7 @@ export DEBUG=1
SOURCE_DIR=$(realpath $(dirname "${0}"))
# Install shared packages and perform OS customization
${SOURCE_DIR}/01-basic.sh
${SOURCE_DIR}/basic.sh
# Install applications
${SOURCE_DIR}/ckan.sh

0
alpine.sh Normal file → Executable file
View File

View File

@ -3,7 +3,8 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/basic
# Install packages
apk --no-cache add docker gettext git htop kbd-misc libressl openssh-server openssh-sftp-server postfix nginx
apk --no-cache add --virtual .useful git file htop libressl openssh-server openssh-sftp-server
apk --no-cache add docker gettext kbd-misc postfix nginx
# Copy profile files and settings
mkdir /root/.ssh

2
postgres.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
SOURCE_DIR=$(realpath $(dirname "${0}"))/postgres

0
postgres/etc/init.d/postgres Normal file → Executable file
View File

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
SOURCE_DIR=$(realpath $(dirname "${0}"))/redis
# Build Docker container

0
redis/etc/init.d/redis Normal file → Executable file
View File

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
SOURCE_DIR=$(realpath $(dirname "${0}"))/solr

0
solr/etc/init.d/solr Normal file → Executable file
View File

View File

@ -1,12 +1,10 @@
#!/bin/bash
#!/bin/sh
# Remove packages not necessary for release
apt-get -y purge bash-completion file gcc git htop openssh-server tree uuid-runtime vim
dpkg -l | awk '{print $2}' | grep '\-dev$' | apt-get -y purge
apt-get -y --purge autoremove
apk del .useful
# Clean package cache
apt-get -y clean
rm -rf /var/cache/apk/*
# Remove user settings
rm -rf /root/* /root/.*