-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial commit #2
base: main
Are you sure you want to change the base?
Conversation
szaimen
commented
Jan 17, 2025
•
edited
Loading
edited
- fix comments in the code and on github
- test
- add docker hub credentials to the repo
- create PR in the aio repo that adds this
- more?
Signed-off-by: Simon L. <[email protected]>
adduser \ | ||
; \ | ||
rm -rf /var/lib/apt/lists/*; \ | ||
# rm /etc/cont-init.d/10-init-users.sh; \ # This script tries to delete the /etc/shadow and /etc/group files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be handled...
groupadd -g 33 www-data | ||
adduser --no-create-home --quiet --uid 33 --gid 33 --disabled-login --force-badname --gecos www-data www-data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe also copy the /etc/group and /etc/shadow files to a volume after the initial creation and then always copy it back and also before stopping save it in a volume... Same could be done for other important files
VOLUME /etc/samba | ||
# VOLUME /etc/group # is a file | ||
# /etc/shadow auch reinmounten, beides read-write. | ||
# Crontabs are need to be stored as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like these
|
||
COPY --chmod=775 startapp.sh /startapp.sh | ||
ADD https://raw.githubusercontent.com/nextcloud/vm/refs/heads/main/static/fetch_lib.sh /var/scripts/fetch_lib.sh | ||
ADD https://raw.githubusercontent.com/nextcloud/vm/main/lib.sh /var/scripts/lib.sh | ||
ADD https://raw.githubusercontent.com/nextcloud/vm/refs/heads/main/not-supported/smbserver.sh /smbserver.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also need to modify the script to allow normal directories, not only mountpoints: https://github.com/nextcloud/vm/blob/b98a75bd503427366a566db699c09474196c7813/not-supported/smbserver.sh#L56-L60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also systemctl is not supported...
trap clean_up_backup SIGINT SIGTERM | ||
|
||
# Start xterm | ||
xhost +si:localuser:root | ||
exec xterm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should also start the smb services in the background...
@@ -13,28 +16,29 @@ ENV USER_ID=0 \ | |||
WEB_AUDIO=1 \ | |||
WEB_AUTHENTICATION=1 \ | |||
SECURE_CONNECTION=1 \ | |||
HOME=/root | |||
WEB_LISTENING_PORT=5600 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe adjust to 5802