File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ ENV GROUP_ID=100
17
17
ENV UMASK=000
18
18
19
19
# Gui App Name default is "GUI_APPLICATION"
20
- ENV APP_NAME="VeraCrypt"
20
+ RUN set-cont-env APP_NAME "VeraCrypt"
21
+ RUN set-cont-env APP_VERSION $VERACRYPT_VERSION
21
22
22
23
# Default resolution, change if you like
23
24
ENV DISPLAY_WIDTH=1280
@@ -56,16 +57,16 @@ RUN \
56
57
del-pkg build-dependencies
57
58
58
59
# Copy X app start script to correct location
59
- COPY startapp.sh /startapp.sh
60
+ COPY --chmod=777 startapp.sh /startapp.sh
60
61
61
62
# Copy default configuration file to correct location
62
63
COPY Configuration.xml /defaults/Configuration.xml
63
64
64
65
# Add veracrypt init script
65
- COPY veracrypt.sh /etc/cont-init.d/90-veracrypt.sh
66
+ COPY --chmod=777 veracrypt.sh /etc/cont-init.d/90-veracrypt.sh
66
67
67
68
# Add veracrypt sudoers script
68
- COPY sudoers.sh /etc/cont-init.d/01-veracrypt-sudoers.sh
69
+ COPY --chmod=777 sudoers.sh /etc/cont-init.d/01-veracrypt-sudoers.sh
69
70
70
71
# Add dismount script
71
72
COPY --chmod=777 dismount /etc/cont-finish.d/dismount
Original file line number Diff line number Diff line change 1
- #!/usr/ bin/with-contenv sh
1
+ #! /bin/sh
2
2
3
3
set -u # Treat unset variables as an error.
4
4
Original file line number Diff line number Diff line change 1
- #! /usr/ bin/with-contenv sh
1
+ #! /bin/sh
2
2
3
3
set -e # Exit immediately if a command exits with a non-zero status.
4
4
set -u # Treat unset variables as an error.
5
5
6
- echo " $APP_USER ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/veracrypt
6
+ echo " app ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/veracrypt
7
7
8
8
chmod 440 /etc/sudoers.d/veracrypt
9
9
10
10
# echo "Defaults logfile=/var/log/sudo" > /etc/sudoers.d/logging
11
11
12
- # chmod 440 /etc/sudoers.d/logging
12
+ # chmod 440 /etc/sudoers.d/loggingdocke
Original file line number Diff line number Diff line change 1
- #! /usr/ bin/with-contenv sh
1
+ #! /bin/sh
2
2
3
3
set -e # Exit immediately if a command exits with a non-zero status.
4
4
set -u # Treat unset variables as an error.
16
16
# Adjust ownership of /config.
17
17
chown -R $USER_ID :$GROUP_ID /config
18
18
# Adjust ownership of /disks
19
- chown -R $USER_ID :$GROUP_ID /mnt/disks
19
+ chown -R $USER_ID :$GROUP_ID /mnt/disks
You can’t perform that action at this time.
0 commit comments