- copy_build_context: rsync/cp/rm -> runFileOp (writes the deployed tree AS the container owner with --no-owner); drop the now-redundant runSystem chown. - setup_lock: .setup_complete is in the docker-install-owned frontend/data -> runFileOp touch/chmod/rm (drop the chown). - tags_processor_docker_installation 'user:' enable + update_compose_yml jail.local -> runFileOp (deployed compose/config under containers). - crontab_clear: clear the manager's own crontab via runInstallOp. - reinstall: cp init.sh to /root -> runSystem (genuine root path). - create_successful_run_file: drop the pointless sudo echo -> runInstallWrite to /docker/run.txt. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
13 lines
536 B
Bash
Executable File
13 lines
536 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Function to remove all crontab data
|
|
crontabClear()
|
|
{
|
|
# Remove the install user's crontab as root so a stale spool file owned by
|
|
# a defunct UID is cleared too — e.g. after the EasyDocker -> LibrePortal
|
|
# user rename. The sticky bit on /var/spool/cron/crontabs otherwise stops
|
|
# the user replacing a file it doesn't own ("rename: Operation not
|
|
# permitted"); setup recreates the crontab as the user next.
|
|
runInstallOp crontab -r 2>/dev/null
|
|
isSuccessful "All crontab data has been deleted."
|
|
} |