Skip to content

Commit

Permalink
update package script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jh committed Aug 21, 2024
1 parent 962564a commit d6b390d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build_debian_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ARCH=$(dpkg --print-architecture)
# make clean
# make
VERSION=0.1.2
VERSION=0.1.3
TAG=v${VERSION}

if [ -d deb_root ]; then
Expand Down Expand Up @@ -60,12 +60,14 @@ if [ ! -d \${GWC_USER_PATH} ]; then
echo "Not found old config files, then create new."
mkdir -pv \${GWC_USER_PATH}
cp -a /etc/gwc/config.example \${GWC_USER_PATH}/config.json
cp -a /etc/gwc/webroot \${GWC_USER_PATH}/
cp -a /etc/gwc/webroot/* \${GWC_USER_PATH}/webroot/
cp -a /etc/gwc/*.sh \${GWC_USER_PATH}/
cd \${GWC_USER_PATH}/
./create-server-cert.sh
./add_user.sh -u test -p test -r lcy-gsteramer-camera -d \${GWC_USER_PATH}/webrtc.db
chown \${SUDO_USER}:\${SUDO_USER} -R \${GWC_USER_PATH}
else
cp -a /etc/gwc/webroot/* \${GWC_USER_PATH}/webroot/
fi
exit 0
EOF
Expand Down

0 comments on commit d6b390d

Please sign in to comment.