Skip to content

Commit

Permalink
fix sed syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
darthnoward committed Aug 6, 2020
1 parent f3c67e9 commit 0c3a77d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts.d/16_pkg_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ INSTALL_PACKAGES=(
rng-tools # for ap bridge
tor=0.3.5.10-1 #TODO bring back to upstream
openvpn
libreadline-dev libconfig-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev libssl1.0-dev # telegram-cli
libreadline-dev libconfig-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev libssl-dev libgcrypt20-dev # telegram-cli
shadowsocks-libev proxychains4 # socks5 proxy
libpam-google-authenticator # two factor authentication
jq # for parsing json / treehouses command
Expand Down
6 changes: 4 additions & 2 deletions scripts.d/20_telegram_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

git clone https://github.com/vysheng/tg --recursive
cd tg
sed '116d' ./tgl/mtproto-utils.c
sed '105d' ./tgl/mtproto-utils.c
sed -i '116d' ./tgl/mtproto-utils.c
sed -i '105d' ./tgl/mtproto-utils.c
./configure
make
cp ./bin/telegram-cli /mnt/img_root/usr/local/bin/telegram-cli
mkdir -p /mnt/img_root/etc/telegram-cli
cp ./server.pub /mnt/img_root/etc/telegram-cli/server.pub
cd ../
rm -rf tg

0 comments on commit 0c3a77d

Please sign in to comment.