Skip to content

Commit

Permalink
Merge pull request #54 from m0ngr31/features/package-upgrades
Browse files Browse the repository at this point in the history
Features/package upgrades
  • Loading branch information
m0ngr31 authored Nov 24, 2021
2 parents e3383bb + bc5a234 commit 6b3a6e0
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 54 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ WORKDIR /app

COPY . .

RUN apk add build-base libffi-dev shadow
RUN apk add build-base libffi-dev shadow sudo

RUN \
addgroup -g 911 abc && \
adduser -D -H -u 911 -G abc abc && \
usermod -G users abc
useradd -u 911 -U -s /bin/false abc && \
usermod -G users abc && \
echo "abc ALL=(ALL) ALL" > /etc/sudoers.d/abc && chmod 0440 /etc/sudoers.d/abc

RUN \
cd /app && \
Expand All @@ -22,7 +22,7 @@ RUN \
RUN \
cd /app/client && \
npm ci && \
npm install node-sass && \
npm rebuild node-sass && \
npm run build

USER abc
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</svg>
</p>

Current version: **1.0-beta11**
Current version: **1.0-beta12**

## About
The idea for this app came from using my Hobonichi Techo planner every morning to write down what I needed to accomplish that day & using it for scratching down random thoughts and notes as the day went on. The closest thing I've seen to an app for replacing this system is Noteplan, but I don't use a Mac or an iOS device, and it's not self-hostable, so I decided to write my own.
Expand Down
78 changes: 37 additions & 41 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "daily-notes",
"version": "1.0.0-beta.11",
"version": "1.0.0-beta.12",
"private": true,
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion client/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var webpack = require('webpack');
var path = require('path');

process.env.VUE_APP_PREVENT_SIGNUPS = process.env.PREVENT_SIGNUPS ? true : '';
process.env.VUE_APP_BASE_URL = process.env.BASE_URL;
process.env.VUE_APP_BASE_URL = process.env.BASE_URL ? VUE_APP_BASE_URL : '';

module.exports = {
lintOnSave: false,
Expand Down
11 changes: 6 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ PUID=${PUID:-911}
PGID=${PGID:-911}

if [ "$(whoami)" = "abc" ]; then
echo "Setting container permissions"
groupmod -o -g "$PGID" abc
usermod -o -u "$PUID" abc
chown abc:abc /app
chown abc:abc /config
if [ "$PUID" != 911 ]; then
echo "Setting container permissions"
sudo groupmod -o -g "$PGID" abc
sudo usermod -o -u "$PUID" abc
sudo chown -R abc:abc /app
fi
fi

if test -f "./config/.env"; then
Expand Down

0 comments on commit 6b3a6e0

Please sign in to comment.