mirror of
https://github.com/YunoHost-Apps/codimd_ynh.git
synced 2024-09-03 18:16:32 +02:00
Fix stupid bug in add_extra_apt_repo...
This commit is contained in:
parent
2f988795c4
commit
a152e5dc10
2 changed files with 5 additions and 6 deletions
|
@ -105,7 +105,7 @@ cp ../conf/.sequelizerc.example "$final_path"/.sequelizerc
|
||||||
#==============================================
|
#==============================================
|
||||||
# INSTALL CODIMD
|
# INSTALL CODIMD
|
||||||
#==============================================
|
#==============================================
|
||||||
ynh_script_progression --message="Building application... (this may take some time and resources!)"
|
ynh_script_progression --message="Building application... (this will take some time and resources!)"
|
||||||
|
|
||||||
pushd "$final_path" || exit
|
pushd "$final_path" || exit
|
||||||
|
|
||||||
|
@ -118,11 +118,10 @@ if [ ! -f .sequelizerc ]; then
|
||||||
cp .sequelizerc.example .sequelizerc
|
cp .sequelizerc.example .sequelizerc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
yarn install
|
yarn install --non-interactive
|
||||||
yarn install --production=false # FIXME: this doesn't sounds like what we want to have for a real deployment ? idk
|
yarn install --non-interactive --production=false # FIXME: this doesn't sounds like what we want to have for a real deployment ? idk
|
||||||
# ---- End copypasta from https://raw.githubusercontent.com/codimd/server/master/bin/setup
|
# ---- End copypasta from https://raw.githubusercontent.com/codimd/server/master/bin/setup
|
||||||
|
|
||||||
|
|
||||||
yarn run build
|
yarn run build
|
||||||
#node_modules/.bin/sequelize db:migrate
|
#node_modules/.bin/sequelize db:migrate
|
||||||
popd || exit
|
popd || exit
|
||||||
|
|
|
@ -128,7 +128,7 @@ ynh_install_extra_repo () {
|
||||||
local component="${repo##$uri $suite }"
|
local component="${repo##$uri $suite }"
|
||||||
|
|
||||||
# Add the repository into sources.list.d
|
# Add the repository into sources.list.d
|
||||||
ynh_add_repo --uri="$uri" --suite="$suite" --component="$component" --name="$name" "$append"
|
ynh_add_repo --uri="$uri" --suite="$suite" --component="$component" --name="$name" $append
|
||||||
|
|
||||||
# Pin the new repo with the default priority, so it won't be used for upgrades.
|
# Pin the new repo with the default priority, so it won't be used for upgrades.
|
||||||
# Build $pin from the uri without http and any sub path
|
# Build $pin from the uri without http and any sub path
|
||||||
|
@ -139,7 +139,7 @@ ynh_install_extra_repo () {
|
||||||
then
|
then
|
||||||
priority="--priority=$priority"
|
priority="--priority=$priority"
|
||||||
fi
|
fi
|
||||||
ynh_pin_repo --package="*" --pin="origin \"$pin\"" "$priority" --name="$name" "$append"
|
ynh_pin_repo --package="*" --pin="origin \"$pin\"" "$priority" --name="$name" $append
|
||||||
|
|
||||||
# Get the public key for the repo
|
# Get the public key for the repo
|
||||||
if [ -n "$key" ]
|
if [ -n "$key" ]
|
||||||
|
|
Loading…
Add table
Reference in a new issue