You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sonic/scripts/docker_init.sh

20 lines
350 B
Bash

#!/bin/sh
check_and_copy() {
if [ ! -e /sonic/$1 ]; then
mkdir -p /sonic/$1
cp -Rf /app/$1/* /sonic/$1/
fi
}
make_and_copy() {
mkdir -p /sonic/$1
cp -Rf /app/$1/* /sonic/$1/
}
make_and_copy 'resources/admin'
make_and_copy 'resources/template/common'
check_and_copy 'conf'
check_and_copy 'resources/template/theme'