diff --git a/README.md b/README.md index 0bab8f2..0c94025 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Install To install the latest release on Linux run: - curl https://code.0x2620.org/0x2620/openmedialibrary.git/HEAD:/install | python3 + curl https://git.0x2620.org/openmedialibrary.git/HEAD:/install | python3 on Mac OS X download this: @@ -25,7 +25,7 @@ Now checkout the source and prepare for use: mkdir openmedialibrary cd openmedialibrary - git clone https://code.0x2620.org/0x2620/openmedialibrary.git + git clone https://git.0x2620.org/openmedialibrary.git ln -s openmedialibrary/ctl ctl ./ctl init @@ -36,16 +36,17 @@ To update to latest version: ./ctl update -On Linux you need a working python3.7 installation with pillow, python-lxml, pyOpenSSL and pyCrypto and popler-utils: +On Linux you need a working python3.6 installation with pillow, python-lxml, pyOpenSSL and pyCrypto and popler-utils: - apt-get install python3 python3-pil python3-lxml \ - python3-openssl python3-crypto poppler-utils + apt-get install python3.6 python3-pil python3-lxml \ + python3-openssl python3-crypto poppler-utils \ + libevent-2.0-5 Platform ---------- If you install Open Media Library on a architecture/os that is currently -not supported, you need a working python 3.7 installation and the dependencies +not supported, you need a working python 3.6 installation and the dependencies listed in requirements.txt and requirements-shared.txt: pip3 install -r requirements.txt diff --git a/ctl b/ctl index c67268d..fd00a02 100755 --- a/ctl +++ b/ctl @@ -9,7 +9,6 @@ fi BASE=`pwd` SYSTEM=`uname -s` PLATFORM=`uname -m` -GIT_BASE=https://code.0x2620.org/0x2620 PYTHON=python3 @@ -91,12 +90,6 @@ hash -r 2>/dev/null # allow more open files ulimit -S -n 2048 -function update_gitbase() { - if [ -e "${BASE}/openmedialibrary/.git/config" ]; tthen - GIT_BASE=`grep origin .git/config -A 1 | grep url | cut -f2 -d=` - fi -} - if [ "$1" == "start" ]; then cd "$BASE/$NAME" if [ -e "$PID" ]; then @@ -190,12 +183,11 @@ if [ "$1" == "ui" ]; then exit $? fi if [ "$1" == "init" ]; then - update_gitbase if [ ! -e "${BASE}/platform" ]; then - git clone --depth 1 $GIT_BASE/openmedialibrary_platform.git "${BASE}/platform" + git clone --depth 1 https://git.0x2620.org/openmedialibrary_platform.git "${BASE}/platform" fi if [ ! -e "${PLATFORM_ENV}" ]; then - git clone --depth 1 $GIT_BASE/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}" + git clone --depth 1 https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}" fi cd "${BASE}" if [ ! -e "${BASE}/ctl" ]; then @@ -207,8 +199,7 @@ fi if [ "$1" == "update" ]; then cd "$BASE/$NAME" if [ ! -e "${PLATFORM_ENV}" ]; then - update_gitbase - git clone --depth 1 $GIT_BASE/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}" + git clone --depth 1 https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}" fi if [ -d "$BASE/$NAME/.git" ]; then OLD=`"$0" version` diff --git a/oml/commands.py b/oml/commands.py index 7e0a05d..af29d86 100644 --- a/oml/commands.py +++ b/oml/commands.py @@ -159,14 +159,14 @@ def command_update_static(*args): if os.path.exists(old_oxjs) and not os.path.exists(oxjs): shutil.move(old_oxjs, oxjs) if not os.path.exists(oxjs): - r('git', 'clone', '--depth', '1', 'https://code.0x2620.org/0x2620/oxjs.git', oxjs) + r('git', 'clone', '--depth', '1', 'https://git.0x2620.org/oxjs.git', oxjs) elif os.path.exists(os.path.join(oxjs, '.git')): os.system('cd "%s" && git pull' % oxjs) r('python3', os.path.join(oxjs, 'tools', 'build', 'build.py'), '-nogeo') utils.update_static() reader = os.path.join(settings.base_dir, '..', 'reader') if not os.path.exists(reader): - r('git', 'clone', '--depth', '1', 'https://code.0x2620.org/0x2620/openmedialibrary_reader.git', reader) + r('git', 'clone', '--depth', '1', 'https://git.0x2620.org/openmedialibrary_reader.git', reader) elif os.path.exists(os.path.join(reader, '.git')): os.system('cd "%s" && git pull' % reader) diff --git a/static/js/folders.js b/static/js/folders.js index 5071434..cd5aa46 100644 --- a/static/js/folders.js +++ b/static/js/folders.js @@ -247,7 +247,7 @@ oml.ui.folders = function() { }); }, open: function() { - !index && !Ox.contains(data.ids, ':Public') && oml.ui.listDialog().open(); + !index && oml.ui.listDialog().open(); }, select: function(data) { oml.UI.set({find: getFind(data.ids[0])});