Minor script updates
- Make init.d scripts executable - Change shebang from bash to sh - Alpinize zz-cleanup.sh
This commit is contained in:
parent
5e398988d5
commit
182c9eb10b
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# For production builds change to DEBUG=0 or comment the line entirely
|
# For production builds change to DEBUG=0 or comment the line entirely
|
||||||
export DEBUG=1
|
export DEBUG=1
|
||||||
@ -6,7 +6,7 @@ export DEBUG=1
|
|||||||
SOURCE_DIR=$(realpath $(dirname "${0}"))
|
SOURCE_DIR=$(realpath $(dirname "${0}"))
|
||||||
|
|
||||||
# Install shared packages and perform OS customization
|
# Install shared packages and perform OS customization
|
||||||
${SOURCE_DIR}/01-basic.sh
|
${SOURCE_DIR}/basic.sh
|
||||||
|
|
||||||
# Install applications
|
# Install applications
|
||||||
${SOURCE_DIR}/ckan.sh
|
${SOURCE_DIR}/ckan.sh
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/basic
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/basic
|
||||||
|
|
||||||
# Install packages
|
# 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
|
# Copy profile files and settings
|
||||||
mkdir /root/.ssh
|
mkdir /root/.ssh
|
2
postgres.sh
Normal file → Executable file
2
postgres.sh
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/postgres
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/postgres
|
||||||
|
|
||||||
|
0
postgres/etc/init.d/postgres
Normal file → Executable file
0
postgres/etc/init.d/postgres
Normal file → Executable file
2
redis.sh
2
redis.sh
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/redis
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/redis
|
||||||
# Build Docker container
|
# Build Docker container
|
||||||
|
0
redis/etc/init.d/redis
Normal file → Executable file
0
redis/etc/init.d/redis
Normal file → Executable file
2
solr.sh
2
solr.sh
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/solr
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/solr
|
||||||
|
|
||||||
|
0
solr/etc/init.d/solr
Normal file → Executable file
0
solr/etc/init.d/solr
Normal file → Executable file
@ -1,12 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# Remove packages not necessary for release
|
# Remove packages not necessary for release
|
||||||
apt-get -y purge bash-completion file gcc git htop openssh-server tree uuid-runtime vim
|
apk del .useful
|
||||||
dpkg -l | awk '{print $2}' | grep '\-dev$' | apt-get -y purge
|
|
||||||
apt-get -y --purge autoremove
|
|
||||||
|
|
||||||
# Clean package cache
|
# Clean package cache
|
||||||
apt-get -y clean
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
# Remove user settings
|
# Remove user settings
|
||||||
rm -rf /root/* /root/.*
|
rm -rf /root/* /root/.*
|
||||||
|
Loading…
Reference in New Issue
Block a user