12 lines
387 B
Bash
12 lines
387 B
Bash
tmp_dir=$(mktemp -d)/peertube-plugin-auto-import-ytb/
|
|
work_dir=$(pwd)/
|
|
# echo $work_dir
|
|
|
|
mkdir $tmp_dir
|
|
# echo "directory created"
|
|
rsync --exclude-from=$work_dir.rsyncignore $work_dir $tmp_dir -ar
|
|
# echo "rsync --exclude-from=$work_dir.rsyncignore $work_dir $tmp_dir"
|
|
# echo "rsync done"
|
|
cd ../PeerTube
|
|
node ./dist/server/tools/peertube.js plugins install --path $tmp_dir
|
|
# echo $tmp_dir |