fix: update installation commands to use curl with sudo for better security

This commit is contained in:
Sarto
2026-03-30 18:39:22 +03:30
parent f7c611f69a
commit 18d42d4156
3 changed files with 36 additions and 36 deletions
+27 -27
View File
@@ -322,35 +322,35 @@ start_service() {
show_usage() {
echo ""
echo -e "┌─────────────────────────────────────────────────────┐"
echo -e "${blue}thefeed service management:${plain}"
echo -e "│ │"
echo -e "${blue}systemctl status thefeed-server${plain} - Status │"
echo -e "${blue}systemctl restart thefeed-server${plain} - Restart │"
echo -e "${blue}systemctl stop thefeed-server${plain} - Stop │"
echo -e "${blue}journalctl -u thefeed-server -f${plain} - Live logs │"
echo -e "│ │"
echo -e "│ All data in: ${blue}${INSTALL_DIR}/${plain}"
echo -e "${blue}Config:${plain} ${DATA_DIR}/thefeed.env │"
echo -e "${blue}Channels:${plain} ${DATA_DIR}/channels.txt │"
echo -e "${blue}Session:${plain} ${DATA_DIR}/session.json │"
echo -e "${blue}Binary:${plain} ${INSTALL_DIR}/thefeed-server │"
echo -e "│ │"
echo -e "${yellow}Quick commands (copy-paste):${plain}"
echo -e "│ Update: ${blue}bash <(curl -Ls URL) ${plain}"
echo -e "│ Uninstall: ${blue}bash <(curl -Ls URL) --uninstall${plain} "
echo -e "│ Re-login: ${blue}bash <(curl -Ls URL) --login${plain}"
echo -e "│ │"
echo -e "${red}⚠ NEVER share your passphrase publicly!${plain}"
echo -e "${red}Anyone with it can read ALL your messages.${plain}"
echo -e "${red}--password only protects the web UI on your PC.${plain}"
echo -e "└─────────────────────────────────────────────────────┘"
echo -e "┌─────────────────────────────────────────────────────────┐"
echo -e "${blue}thefeed service management:${plain} "
echo -e "│ │"
echo -e "${blue}systemctl status thefeed-server${plain} - Status "
echo -e "${blue}systemctl restart thefeed-server${plain} - Restart "
echo -e "${blue}systemctl stop thefeed-server${plain} - Stop "
echo -e "${blue}journalctl -u thefeed-server -f${plain} - Live logs "
echo -e "│ │"
echo -e "│ All data in: ${blue}${INSTALL_DIR}/${plain} "
echo -e "${blue}Config:${plain} ${DATA_DIR}/thefeed.env "
echo -e "${blue}Channels:${plain} ${DATA_DIR}/channels.txt "
echo -e "${blue}Session:${plain} ${DATA_DIR}/session.json "
echo -e "${blue}Binary:${plain} ${INSTALL_DIR}/thefeed-server "
echo -e "│ │"
echo -e "${yellow}Quick commands (copy-paste):${plain} "
echo -e "│ Update: ${blue}curl -Ls URL | sudo bash${plain} "
echo -e "│ Uninstall: ${blue}curl -Ls URL | sudo bash -s -- --uninstall${plain}"
echo -e "│ Re-login: ${blue}curl -Ls URL | sudo bash -s -- --login${plain}"
echo -e "│ │"
echo -e "${red}⚠ NEVER share your passphrase publicly!${plain} "
echo -e "${red}Anyone with it can read ALL your messages.${plain} "
echo -e "${red}--password only protects the web UI on your PC.${plain} "
echo -e "└─────────────────────────────────────────────────────────┘"
echo ""
echo -e "Full update command:"
echo -e " ${blue}sudo bash <(curl -Ls https://raw.githubusercontent.com/${GITHUB_REPO}/main/scripts/install.sh)${plain}"
echo -e " ${blue}curl -Ls https://raw.githubusercontent.com/${GITHUB_REPO}/main/scripts/install.sh | sudo bash${plain}"
echo ""
echo -e "Full uninstall command:"
echo -e " ${blue}sudo bash <(curl -Ls https://raw.githubusercontent.com/${GITHUB_REPO}/main/scripts/install.sh) --uninstall${plain}"
echo -e " ${blue}curl -Ls https://raw.githubusercontent.com/${GITHUB_REPO}/main/scripts/install.sh | sudo bash -s -- --uninstall${plain}"
echo ""
}
@@ -504,8 +504,8 @@ show_help() {
echo -e " Safer because no phone number or API keys are stored on the server."
echo ""
echo -e "Quick commands:"
echo -e " Install/Update: ${blue}sudo bash <(curl -Ls https://raw.githubusercontent.com/${GITHUB_REPO}/main/scripts/install.sh)${plain}"
echo -e " Uninstall: ${blue}sudo bash <(curl -Ls https://raw.githubusercontent.com/${GITHUB_REPO}/main/scripts/install.sh) --uninstall${plain}"
echo -e " Install/Update: ${blue}curl -Ls https://raw.githubusercontent.com/${GITHUB_REPO}/main/scripts/install.sh | sudo bash${plain}"
echo -e " Uninstall: ${blue}curl -Ls https://raw.githubusercontent.com/${GITHUB_REPO}/main/scripts/install.sh | sudo bash -s -- --uninstall${plain}"
}
# Main