mirror of
https://github.com/linuxserver/docker-projectsend.git
synced 2026-02-20 08:39:17 +08:00
Simplify copies slightly
This commit is contained in:
parent
91376b4238
commit
cad3445302
@ -44,9 +44,6 @@ RUN \
|
||||
mv /app/www/public/upload /defaults/ && \
|
||||
echo "**** download default lang files ****" && \
|
||||
mkdir -p /defaults/lang && \
|
||||
curl -fso \
|
||||
/defaults/lang/default.pot -L \
|
||||
"https://raw.githubusercontent.com/projectsend/projectsend/refs/heads/develop/templates/default/lang/default.pot" && \
|
||||
curl -fso \
|
||||
/defaults/lang/en.mo -L \
|
||||
"https://raw.githubusercontent.com/projectsend/projectsend/refs/heads/develop/templates/default/lang/en.mo" && \
|
||||
|
||||
@ -44,9 +44,6 @@ RUN \
|
||||
mv /app/www/public/upload /defaults/ && \
|
||||
echo "**** download default lang files ****" && \
|
||||
mkdir -p /defaults/lang && \
|
||||
curl -fso \
|
||||
/defaults/lang/default.pot -L \
|
||||
"https://raw.githubusercontent.com/projectsend/projectsend/refs/heads/develop/templates/default/lang/default.pot" && \
|
||||
curl -fso \
|
||||
/defaults/lang/en.mo -L \
|
||||
"https://raw.githubusercontent.com/projectsend/projectsend/refs/heads/develop/templates/default/lang/en.mo" && \
|
||||
|
||||
@ -80,7 +80,7 @@ symlinks=(
|
||||
)
|
||||
|
||||
for i in "${symlinks[@]}"; do
|
||||
path=$(echo "${i}" | awk -F '/' '{print $(NF-1)"/"$NF}')
|
||||
path=$(echo "${i}" | awk -F '/' '{print $(NF-1)}')
|
||||
# symlink translations
|
||||
if [[ -d /config/translations/"$path" && ! -L "${i}" ]]; then
|
||||
rm -rf "${i}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user