2021-07-12 17:02:39 +02:00
|
|
|
#/bin/bash
|
2021-06-29 16:33:42 +02:00
|
|
|
tmp_dir=$(mktemp -d)/peertube-plugin-auto-import-ytb
|
|
|
|
work_dir=$(pwd)
|
2021-07-12 17:02:39 +02:00
|
|
|
# echo "${work_dir}"
|
2021-06-26 16:42:04 +02:00
|
|
|
|
2021-07-12 17:02:39 +02:00
|
|
|
mkdir "${tmp_dir}"
|
2021-06-26 16:42:04 +02:00
|
|
|
# echo "directory created"
|
2021-06-29 16:33:42 +02:00
|
|
|
cp "${work_dir}/dist" "${work_dir}/package.json" "${work_dir}/LICENSE" $tmp_dir -r
|
2021-06-26 16:42:04 +02:00
|
|
|
# echo "rsync --exclude-from=$work_dir.rsyncignore $work_dir $tmp_dir"
|
|
|
|
# echo "rsync done"
|
2021-07-12 17:02:39 +02:00
|
|
|
cd "../PeerTube-cli"
|
2021-06-29 16:33:42 +02:00
|
|
|
node "./dist/server/tools/peertube.js" plugins install --path "${tmp_dir}"
|
2021-06-26 16:42:04 +02:00
|
|
|
# echo $tmp_dir
|