| | 2 | |
| | 3 | Create the run.sh file for use to create the project and user admin with password |
| | 4 | {{{ |
| | 5 | krit docker trac-alpine$ cat run.sh |
| | 6 | #!/usr/bin/env bash |
| | 7 | |
| | 8 | # Create Trac project |
| | 9 | |
| | 10 | if [ -f /trac/VERSION ]; then |
| | 11 | echo "Project already exists here" |
| | 12 | else |
| | 13 | echo "Creating a new project" |
| | 14 | trac-admin /trac initenv $projectname sqlite:db/trac.db |
| | 15 | trac-admin /trac permission add $user $password |
| | 16 | trac-admin /trac permission add $user TRAC_ADMIN |
| | 17 | htpasswd -cb .htpass $user $password |
| | 18 | fi |
| | 19 | |
| | 20 | #tracd --port 8000 /trac |
| | 21 | tracd --port 8000 --basic-auth="*,/trac/.htpass,realmname" /trac/ |
| | 22 | krit docker trac-alpine$ |
| | 23 | }}} |