login.txt

This commit is contained in:
Bob Mottram 2018-04-01 17:13:52 +01:00
parent 4201c612ec
commit 2916577397
1 changed files with 7 additions and 7 deletions

View File

@ -63,7 +63,7 @@ function peertube_import_from_syncthing {
echo 'fi'; echo 'fi';
echo ''; echo '';
echo "search_dir=/home/\$MY_USERNAME/Sync/peertube_upload"; echo "search_dir=/home/\$MY_USERNAME/Sync/peertube_upload";
echo "if [ ! -f \$search_dir/login ]; then"; echo "if [ ! -f \$search_dir/login.txt ]; then";
echo ' exit 0'; echo ' exit 0';
echo 'fi'; echo 'fi';
echo "import_script=${PEERTUBE_DIR}/dist/server/tools/upload.js"; echo "import_script=${PEERTUBE_DIR}/dist/server/tools/upload.js";
@ -72,21 +72,21 @@ function peertube_import_from_syncthing {
echo 'fi'; echo 'fi';
echo ''; echo '';
echo "peertubedomain=\"http://localhost:${PEERTUBE_PORT}\""; echo "peertubedomain=\"http://localhost:${PEERTUBE_PORT}\"";
echo "peertubeuser=\$(sed -n 1p < \"\$search_dir/login\")"; echo "peertubeuser=\$(sed -n 1p < \"\$search_dir/login.txt\")";
echo "peertubepassword=\$(sed -n 2p < \"\$search_dir/login\")"; echo "peertubepassword=\$(sed -n 2p < \"\$search_dir/login.txt\")";
echo 'peertubensfw='; echo 'peertubensfw=';
echo "if grep 'nsfw' \"\$search_dir/login\"; then"; echo "if grep 'nsfw' \"\$search_dir/login.txt\"; then";
echo " peertubensfw='--nsfw'"; echo " peertubensfw='--nsfw'";
echo 'fi'; echo 'fi';
echo "if grep 'NSFW' \"\$search_dir/login\"; then"; echo "if grep 'NSFW' \"\$search_dir/login.txt\"; then";
echo " peertubensfw='--nsfw'"; echo " peertubensfw='--nsfw'";
echo 'fi'; echo 'fi';
echo ''; echo '';
echo "peertubeprivate='-P 3'"; echo "peertubeprivate='-P 3'";
echo "if grep 'public' \"\$search_dir/login\"; then"; echo "if grep 'public' \"\$search_dir/login.txt\"; then";
echo " peertubeprivate='-P 1'"; echo " peertubeprivate='-P 1'";
echo 'fi'; echo 'fi';
echo "if grep 'Public' \"\$search_dir/login\"; then"; echo "if grep 'Public' \"\$search_dir/login.txt\"; then";
echo " peertubeprivate='-P 1'"; echo " peertubeprivate='-P 1'";
echo 'fi'; echo 'fi';
echo ''; echo '';