Ca marche pas trop mal

This commit is contained in:
Amaury
2021-07-12 17:02:39 +02:00
parent 81f540e29d
commit 9597cddc80
5 changed files with 1301 additions and 126 deletions

View File

@ -1,12 +1,13 @@
#/bin/bash
tmp_dir=$(mktemp -d)/peertube-plugin-auto-import-ytb
work_dir=$(pwd)
# echo $work_dir
# echo "${work_dir}"
mkdir $tmp_dir
mkdir "${tmp_dir}"
# echo "directory created"
cp "${work_dir}/dist" "${work_dir}/package.json" "${work_dir}/LICENSE" $tmp_dir -r
# echo "rsync --exclude-from=$work_dir.rsyncignore $work_dir $tmp_dir"
# echo "rsync done"
cd "../PeerTube"
cd "../PeerTube-cli"
node "./dist/server/tools/peertube.js" plugins install --path "${tmp_dir}"
# echo $tmp_dir