refactor: spelling
This commit is contained in:
parent
532d62833b
commit
30b2386e30
@ -42,7 +42,7 @@ trapexit() {
|
|||||||
|
|
||||||
# Check for previous install
|
# Check for previous install
|
||||||
if [ -f /etc/init.d/npm ]; then
|
if [ -f /etc/init.d/npm ]; then
|
||||||
log "Stoping services"
|
log "Stopping services"
|
||||||
rc-service npm stop &>/dev/null
|
rc-service npm stop &>/dev/null
|
||||||
rc-service openresty stop &>/dev/null
|
rc-service openresty stop &>/dev/null
|
||||||
sleep 2
|
sleep 2
|
||||||
@ -56,7 +56,7 @@ if [ -f /etc/init.d/npm ]; then
|
|||||||
/var/lib/nginx \
|
/var/lib/nginx \
|
||||||
/var/cache/nginx &>/dev/null
|
/var/cache/nginx &>/dev/null
|
||||||
|
|
||||||
log "Removing old dependancies"
|
log "Removing old dependencies"
|
||||||
apk del certbot $DEVDEPS &>/dev/null
|
apk del certbot $DEVDEPS &>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ runcmd apk upgrade
|
|||||||
echo "fs.file-max = 65535" > /etc/sysctl.conf
|
echo "fs.file-max = 65535" > /etc/sysctl.conf
|
||||||
|
|
||||||
# Install dependancies
|
# Install dependancies
|
||||||
log "Installing dependancies"
|
log "Installing dependencies"
|
||||||
runcmd 'apk add python3 openresty nodejs yarn openssl apache2-utils $DEVDEPS'
|
runcmd 'apk add python3 openresty nodejs yarn openssl apache2-utils $DEVDEPS'
|
||||||
|
|
||||||
# Setup python env and PIP
|
# Setup python env and PIP
|
||||||
@ -166,7 +166,7 @@ runcmd yarn build
|
|||||||
cp -r dist/* /app/frontend
|
cp -r dist/* /app/frontend
|
||||||
cp -r app-images/* /app/frontend/images
|
cp -r app-images/* /app/frontend/images
|
||||||
|
|
||||||
log "Initalizing backend"
|
log "Initializing backend"
|
||||||
rm -rf /app/config/default.json &>/dev/null
|
rm -rf /app/config/default.json &>/dev/null
|
||||||
if [ ! -f /app/config/production.json ]; then
|
if [ ! -f /app/config/production.json ]; then
|
||||||
cat << 'EOF' > /app/config/production.json
|
cat << 'EOF' > /app/config/production.json
|
||||||
|
Loading…
Reference in New Issue
Block a user