Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

initial commit #2

wants to merge 1 commit into from

Conversation

szaimen
Copy link
Owner

@szaimen szaimen commented Jan 17, 2025

  • 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]>
@szaimen szaimen added the enhancement New feature or request label Jan 17, 2025
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
Copy link
Owner Author

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...

Comment on lines +3 to +4
groupadd -g 33 www-data
adduser --no-create-home --quiet --uid 33 --gid 33 --disabled-login --force-badname --gecos www-data www-data
Copy link
Owner Author

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

Comment on lines +40 to +43
VOLUME /etc/samba
# VOLUME /etc/group # is a file
# /etc/shadow auch reinmounten, beides read-write.
# Crontabs are need to be stored as well?
Copy link
Owner Author

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
Copy link
Owner Author

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

Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe adjust to 5802

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant