16 lines
650 B
Bash
16 lines
650 B
Bash
#!/bin/bash
|
|
PATH_BUILD=$1
|
|
PATH_DEB=$2
|
|
GIT_VERSION=$3
|
|
|
|
cp -fr ${PATH_BUILD}/tmp/rss-bridge ${PATH_DEB}/usr/share/
|
|
|
|
cp ${PATH_DEB}/usr/share/rss-bridge/config.default.ini.php ${PATH_DEB}/etc/rss-bridge/config.ini.php
|
|
cp ${PATH_DEB}/usr/share/rss-bridge/whitelist.default.txt ${PATH_DEB}/etc/rss-bridge/whitelist.txt
|
|
|
|
ln -s /etc/rss-bridge/config.ini.php ${PATH_DEB}/usr/share/rss-bridge/config.ini.php
|
|
ln -s /etc/rss-bridge/whitelist.txt ${PATH_DEB}/usr/share/rss-bridge/whitelist.txt
|
|
|
|
mkdir -p ${PATH_DEB}/var/cache/rss-bridge/cache/
|
|
rm ${PATH_DEB}/usr/share/rss-bridge/cache
|
|
ln -s /var/cache/rss-bridge/cache/ ${PATH_DEB}/usr/share/rss-bridge/cache
|