Skip to content

Commit

Permalink
add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
john authored and john committed Dec 4, 2019
1 parent c82e63b commit bdcc3ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synology-package/INFO
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package="MEGAsync"
displayname="MEGAsync client"
firmware=None
os_min_ver="5.2-5565"
description="MEGAsync client for Synology"
description="MEGAsync client for Synology. Alert: remove this package will delete MEGAsync folder, backup it before remove package."
arch="noarch"
maintainer="John Shine"
maintainer_url="https://github.com/john-shine/mega.syno"
Expand Down
11 changes: 11 additions & 0 deletions synology-package/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
# synology-mega-package

in MacOS, you should install gnu-tar first:

`brew install gnu-tar`

To build .spk package file, run:

`./pkgCreate.sh`

.spk generate in build folder.

2 changes: 1 addition & 1 deletion synology-package/scripts/start-stop-status
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ case $1 in
if [ $is_exist -eq 0 ]; then
mkdir -p "${SYNOPKG_PKGDEST_VOL}/MEGAsync"
chmod 777 "${SYNOPKG_PKGDEST_VOL}/MEGAsync"
container_id=$(docker run -d -v "${SYNOPKG_PKGDEST_VOL}/MEGAsync":"/home/mega/MEGA" -p 6900:6080 johnshine/mega.syno:latest 2>&1 | tee "${SYNOPKG_PKGDEST}/package/logs/all.log" "${SYNOPKG_PKGDEST}/package/logs/start.log")
container_id=$(docker run -d -v "${SYNOPKG_PKGDEST_VOL}/MEGAsync":"/home/mega/MEGA" -p 8900:6080 johnshine/mega.syno:latest 2>&1 | tee "${SYNOPKG_PKGDEST}/package/logs/all.log" "${SYNOPKG_PKGDEST}/package/logs/start.log")
else
docker start $container_id 2>&1 | tee "${SYNOPKG_PKGDEST}/package/logs/all.log" "${SYNOPKG_PKGDEST}/package/logs/start.log"
fi
Expand Down

0 comments on commit bdcc3ea

Please sign in to comment.