[Synology] DownloadStation 완료시 텔레그램으로 알림 전송

NAS
1. 패키지센터에서 Download Station을 종료 2. ssh를 이용하여 쉘로 진입하여, Root권한을 획득한다. #sudo -i 3. Download Station 재부팅 간 설정파일을 초기화하지 않도록 변경하기 위해, 아래 명령어로 스크립트 파일을 수정 #vi /var/packages/DownloadStation/scripts/start-stop-status 4. "rm ${PACKAGE_DIR}/etc/download/settings.json" 이라고 적혀있는 부분을 찾아서, 앞에 "#"을 붙여 주석처리해주고 저장 #rm ${PACKAGE_DIR}/etc/download/settings.json 5. 설정 변경을 위해 아래 명령어로 설정 파일 수정위 4번에서 경로를 찾아서 변경된 경로로 접근을 해도 됩니다.(업데이트에 따라서 경로가 바뀔수도 있습니다.) #vi /var/packages/DownloadStation/etc/download/settings.json 6. script-torrent-done-enabled, script-torrent-done-filename을 찾아서 아래와 같이 변경 "script-torrent-done-enabled": true, "script-torrent-done-filename": "/volume1/@appstore/DownloadStation/bin/downloadComplete.sh", 7. postgresql의 계정정책 관련 설정을 변경 #vi /etc/postgresql/pg_hba.conf 8. 아래와 같이 되어 있는 부분을 변경 #Before) # TYPE DATABASE USER ADDRESS METHOD local all postgres peer map=pg_root local all all peer #After) # TYPE DATABASE USER ADDRESS METHOD local all postgres trust local all all peer 이걸 안하면, OS계정과 postgresql 계정이…
Read More