openhab / openhab-syno-spk

openHAB Synology SPK Install Package
Eclipse Public License 2.0
161 stars 42 forks source link

Update installer.sh #20

Closed gittela closed 8 years ago

gittela commented 8 years ago

unzip is no loger available on DSM 6.0, it has been replaced by 7zip. The following command: unzip ${TEMP_FOLDER}/${DOWNLOAD_FILE} -d ${EXTRACTED_FOLDER} && rm ${TEMP_FOLDER}/${DOWNLOAD_FILE} needs to be replaced with this:
7z x -o${EXTRACTED_FOLDER} ${TEMP_FOLDER}/${DOWNLOAD_FILE} && rm ${TEMP_FOLDER}/${DOWNLOAD_FILE}

7zip has a slightly different syntax on "output dir".

It finally installs correctly!

gittela commented 8 years ago

I forgot to branch it! Sorry!

cniweb commented 8 years ago

Sorry, but the openhab:2.0-beta1 branch is only for DSM 4 or 5! A new branch for openhab 2.0 and DSM 6 is still needed... In the DSM-6.0-beta branch is 7zip already implemented: https://github.com/openhab/openhab-syno-spk/blob/DSM-6.0-beta/scripts/installer.sh#L79

Can I close this PR?

Chris

gittela commented 8 years ago

Ah! My bad! Trying to make stuff work late at night... I'll try the rc. Yes, off course you can close it.

:-)