Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F117607
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/install.sh b/install.sh
index 5ca1517..bbae8b2 100644
--- a/install.sh
+++ b/install.sh
@@ -1,60 +1,61 @@
printf "This script is intended to work with Ubuntu 16.04 - 18.04, other versions may also\n"
printf "work. Root access is required to complete the installation. Press enter to continue,\n"
printf "or press CTRL + C to abort.\n"
read
set -e
sudo apt-get update
aptlist="git wget openssl coreutils make gcc libreadline-dev redis-server unzip libexpat1-dev libcurl3 libcurl3-gnutls ruby ruby-dev libgd-dev imagemagick tesseract-ocr"
for package in $aptlist; do
printf "[Info] Installing $package...\n"
sudo apt-get --yes --force-yes install $package
done
if [ ! -f "`which lua`" ]; then
printf "[Info] Downloading Lua 5.3.5...\n"
wget -N http://www.lua.org/ftp/lua-5.3.5.tar.gz
printf "[Info] Extracting Lua 5.3.5...\n"
tar zxf lua-5.3.5.tar.gz
cd lua-5.3.5/
printf "[Info] Installing Lua 5.3.5...\n"
sudo make linux test
sudo make install
sudo cp /usr/local/bin/lua /usr/bin/lua
sudo cp /usr/local/bin/luac /usr/bin/luac
cd ../
fi
if [ ! -f "`which luarocks`" ]; then
printf "[Info] Downloading LuaRocks...\n"
git clone --recursive https://github.com/keplerproject/luarocks
cd luarocks/
printf "[Info] Building LuaRocks...\n"
sudo ./configure --lua-version=5.3 --versioned-rocks-dir
sudo make build
printf "[Info] Installing LuaRocks...\n"
sudo make install
cd ../
fi
printf "[Info] Installing openssl...\n"
sudo luarocks install --server=http://luarocks.org/dev openssl
rocklist="luasocket luasec multipart-post lpeg dkjson serpent redis-lua luafilesystem uuid html-entities feedparser telegram-bot-lua lzlib"
for rock in $rocklist; do
printf "[Info] Installing $rock...\n"
sudo luarocks install $rock
done
printf "[Info] Installing lua-captcha...\n"
git clone git://github.com/lua-programming/lua-captcha.git
cp patch/malloc.patch lua-captcha/
cd lua-captcha/
+git apply malloc.patch
sudo luarocks make rockspec/lua-captcha-1.0-0.rockspec
cd ../
printf "[Info] Installing redis-dump...\n"
sudo gem install redis-dump
printf "[Info] Installing ImageMagick...\n"
wget https://imagemagick.org/download/binaries/magick
printf "[Info] Cleaning up installation files...\n"
sudo rm -rf lua-5.3.5/
sudo rm lua-5.3.5.tar.gz
sudo rm -rf luarocks/
sudo rm -rf patch/
sudo rm -rf lua-captcha/
sudo -k
-printf "[Info] Installation complete.\n"
\ No newline at end of file
+printf "[Info] Installation complete.\n"
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, May 14, 9:44 AM (1 d, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
63462
Default Alt Text
(2 KB)
Attached To
Mode
R69 mattata
Attached
Detach File
Event Timeline