diff --git a/src/freedombone-app-peertube b/src/freedombone-app-peertube index 7c66d7f4..b56660ce 100755 --- a/src/freedombone-app-peertube +++ b/src/freedombone-app-peertube @@ -63,7 +63,7 @@ function peertube_import_from_syncthing { echo 'fi'; echo ''; 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 'fi'; echo "import_script=${PEERTUBE_DIR}/dist/server/tools/upload.js"; @@ -72,21 +72,21 @@ function peertube_import_from_syncthing { echo 'fi'; echo ''; echo "peertubedomain=\"http://localhost:${PEERTUBE_PORT}\""; - echo "peertubeuser=\$(sed -n 1p < \"\$search_dir/login\")"; - echo "peertubepassword=\$(sed -n 2p < \"\$search_dir/login\")"; + echo "peertubeuser=\$(sed -n 1p < \"\$search_dir/login.txt\")"; + echo "peertubepassword=\$(sed -n 2p < \"\$search_dir/login.txt\")"; echo 'peertubensfw='; - echo "if grep 'nsfw' \"\$search_dir/login\"; then"; + echo "if grep 'nsfw' \"\$search_dir/login.txt\"; then"; echo " peertubensfw='--nsfw'"; echo 'fi'; - echo "if grep 'NSFW' \"\$search_dir/login\"; then"; + echo "if grep 'NSFW' \"\$search_dir/login.txt\"; then"; echo " peertubensfw='--nsfw'"; echo 'fi'; echo ''; 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 'fi'; - echo "if grep 'Public' \"\$search_dir/login\"; then"; + echo "if grep 'Public' \"\$search_dir/login.txt\"; then"; echo " peertubeprivate='-P 1'"; echo 'fi'; echo '';