mirror of
https://github.com/YunoHost-Apps/wallabag2_ynh.git
synced 2024-10-01 13:35:06 +02:00
[clean] Remove commands related to downloading sources from git
This commit is contained in:
parent
e56e8ff84c
commit
6906f58f97
2 changed files with 1 additions and 46 deletions
|
@ -8,9 +8,6 @@ VERSION=2.0.5
|
||||||
# Package name for Wallabag dependencies
|
# Package name for Wallabag dependencies
|
||||||
DEPS_PKG_NAME="wallabag-deps"
|
DEPS_PKG_NAME="wallabag-deps"
|
||||||
|
|
||||||
## Wallabag git repository URL
|
|
||||||
#WALLABAG_GIT_URL="https://github.com/wallabag/wallabag.git"
|
|
||||||
|
|
||||||
# Full Wallabag sources tarball URL
|
# Full Wallabag sources tarball URL
|
||||||
WALLABAG_SOURCE_URL="https://framabag.org/wallabag-release-${VERSION}.tar.gz"
|
WALLABAG_SOURCE_URL="https://framabag.org/wallabag-release-${VERSION}.tar.gz"
|
||||||
|
|
||||||
|
@ -41,34 +38,6 @@ exec_as() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
## Execute a composer command from a given directory
|
|
||||||
## usage: exec_composer AS_USER WORKDIR COMMAND [ARG ...]
|
|
||||||
#exec_composer() {
|
|
||||||
# local AS_USER=$1
|
|
||||||
# local WORKDIR=$2
|
|
||||||
# shift 2
|
|
||||||
#
|
|
||||||
# exec_as "$AS_USER" COMPOSER_HOME="${WORKDIR}/.composer" SYMFONY_ENV=prod \
|
|
||||||
# php "${WORKDIR}/composer.phar" $@ \
|
|
||||||
# -d "${WORKDIR}" --no-interaction
|
|
||||||
#}
|
|
||||||
|
|
||||||
## Install and initialize Composer in the given directory
|
|
||||||
## usage: init_composer DESTDIR [AS_USER]
|
|
||||||
#init_composer() {
|
|
||||||
# local DESTDIR=$1
|
|
||||||
# local AS_USER=${2:-$USER}
|
|
||||||
#
|
|
||||||
# # install composer
|
|
||||||
# curl -sS https://getcomposer.org/installer \
|
|
||||||
# | COMPOSER_HOME="${DESTDIR}/.composer" \
|
|
||||||
# php -- --quiet --install-dir="$DESTDIR" \
|
|
||||||
# || die "Unable to install Composer"
|
|
||||||
#
|
|
||||||
# # install dependencies
|
|
||||||
# exec_composer "$AS_USER" "$DESTDIR" install --no-dev --prefer-dist
|
|
||||||
#}
|
|
||||||
|
|
||||||
# Execute a command through the wallabag console
|
# Execute a command through the wallabag console
|
||||||
# usage: exec_console AS_USER WORKDIR COMMAND [ARG ...]
|
# usage: exec_console AS_USER WORKDIR COMMAND [ARG ...]
|
||||||
exec_console() {
|
exec_console() {
|
||||||
|
@ -80,18 +49,6 @@ exec_console() {
|
||||||
exec_as "$AS_USER" php "bin/console" --no-interaction --env=prod $@)
|
exec_as "$AS_USER" php "bin/console" --no-interaction --env=prod $@)
|
||||||
}
|
}
|
||||||
|
|
||||||
## Fetch git repository and checkout Wallabag version to the given directory
|
|
||||||
## usage: clone_wallabag DESTDIR
|
|
||||||
#clone_wallabag() {
|
|
||||||
# local DESTDIR=$1
|
|
||||||
#
|
|
||||||
# # clone git repository
|
|
||||||
# git clone -q "$WALLABAG_GIT_URL" "$DESTDIR" \
|
|
||||||
# || ynh_die "Unable to fetch Wallabag sources"
|
|
||||||
# (cd "$DESTDIR" && git checkout -q "$VERSION") \
|
|
||||||
# || ynh_die "Unable to retrieve Wallabag version"
|
|
||||||
#}
|
|
||||||
|
|
||||||
# Download and extract Wallabag sources to the given directory
|
# Download and extract Wallabag sources to the given directory
|
||||||
# usage: extract_wallabag DESTDIR [AS_USER]
|
# usage: extract_wallabag DESTDIR [AS_USER]
|
||||||
extract_wallabag() {
|
extract_wallabag() {
|
||||||
|
|
|
@ -12,7 +12,7 @@ path=${2%/}
|
||||||
admin=$3
|
admin=$3
|
||||||
|
|
||||||
# Load common variables and helpers
|
# Load common variables and helpers
|
||||||
. ./_common.sh
|
source ./_common.sh
|
||||||
|
|
||||||
# Set app specific variables
|
# Set app specific variables
|
||||||
dbname=$app
|
dbname=$app
|
||||||
|
@ -39,7 +39,6 @@ ynh_package_install_from_equivs ../conf/${DEPS_PKG_NAME}.control \
|
||||||
|
|
||||||
# Create tmp directory and fetch app inside
|
# Create tmp directory and fetch app inside
|
||||||
TMPDIR=$(ynh_mkdir_tmp)
|
TMPDIR=$(ynh_mkdir_tmp)
|
||||||
#clone_wallabag "$TMPDIR"
|
|
||||||
extract_wallabag "$TMPDIR"
|
extract_wallabag "$TMPDIR"
|
||||||
|
|
||||||
# Generate random DES key & password
|
# Generate random DES key & password
|
||||||
|
@ -63,7 +62,6 @@ sudo mv "$TMPDIR" "$DESTDIR"
|
||||||
sudo chown -R www-data: "$DESTDIR"
|
sudo chown -R www-data: "$DESTDIR"
|
||||||
|
|
||||||
# Install dependencies and Wallabag
|
# Install dependencies and Wallabag
|
||||||
#init_composer "$DESTDIR" www-data
|
|
||||||
exec_console www-data "$DESTDIR" wallabag:install
|
exec_console www-data "$DESTDIR" wallabag:install
|
||||||
|
|
||||||
# Add users to Wallabag
|
# Add users to Wallabag
|
||||||
|
|
Loading…
Add table
Reference in a new issue