install.sh 483 B

12345678910111213141516
  1. #!/bin/bash
  2. # @Contact : liuyuqi.gov@msn.cn
  3. # @Time : 2024/04/09 13:38:51
  4. # @License : (C)Copyright 2022 liuyuqi.
  5. # @Desc : install fgh to os system
  6. ###############################################################################
  7. mkdir -p /opt/fgh
  8. wget https://fileshare.yoqi.me/fgh/fgh -O /opt/fgh/fgh
  9. chmod +x /opt/fgh/fgh
  10. ln -s /opt/fgh/fgh /usr/local/bin/fgh
  11. echo "export PATH=$PATH:/opt/fgh" >> /etc/profile
  12. source /etc/profile
  13. echo "fgh installed successfully"