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
|
||||
#==============================================
|
||||
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
|
||||
|
||||
|
@ -118,11 +118,10 @@ if [ ! -f .sequelizerc ]; then
|
|||
cp .sequelizerc.example .sequelizerc
|
||||
fi
|
||||
|
||||
yarn install
|
||||
yarn install --production=false # FIXME: this doesn't sounds like what we want to have for a real deployment ? idk
|
||||
yarn install --non-interactive
|
||||
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
|
||||
|
||||
|
||||
yarn run build
|
||||
#node_modules/.bin/sequelize db:migrate
|
||||
popd || exit
|
||||
|
|
|
@ -128,7 +128,7 @@ ynh_install_extra_repo () {
|
|||
local component="${repo##$uri $suite }"
|
||||
|
||||
# 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.
|
||||
# Build $pin from the uri without http and any sub path
|
||||
|
@ -139,7 +139,7 @@ ynh_install_extra_repo () {
|
|||
then
|
||||
priority="--priority=$priority"
|
||||
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
|
||||
if [ -n "$key" ]
|
||||
|
|
Loading…
Reference in a new issue