mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-21 02:03:38 +00:00
e56303798c
Initial SickGear for Python 3.
27 lines
649 B
Bash
Executable file
27 lines
649 B
Bash
Executable file
#!/bin/sh -e
|
|
##
|
|
# Goals:
|
|
# 1) Create an initial config file
|
|
# 2) Relocate scripts used in third party apps so their configs can be edited
|
|
##
|
|
#set -x
|
|
#mkdir -p "$SNAP_COMMON"
|
|
#exec >> "$SNAP_COMMON/install.log" 2>&1
|
|
#echo "$(date '+%Y-%m-%d %H:%M:%S') $0: Entering hook"
|
|
##
|
|
data="${SNAP_COMMON}/data"
|
|
cfg="${data}/config.ini"
|
|
mkdir -p "${data}"
|
|
|
|
# create initial config
|
|
[ ! -f "${cfg}" ] && cat > "${cfg}" <<EOT
|
|
[General]
|
|
branch = master
|
|
git_remote = origin
|
|
cur_commit_hash = "snap"
|
|
cur_commit_branch = "master"
|
|
version_notify = 0
|
|
EOT
|
|
|
|
# relocate autoProcessTV to /var/snap/sickgear/current/
|
|
cp -R "${SNAP}/${SNAP_NAME}/autoProcessTV" "${SNAP_DATA}"
|