mirror of
https://github.com/YunoHost-Apps/shaarli_ynh.git
synced 2024-09-03 20:26:10 +02:00
Make the package linter happy : you dun' need sudo because you're already root bruh
This commit is contained in:
parent
7c250ff9b9
commit
5449171f6a
3 changed files with 9 additions and 9 deletions
|
@ -46,7 +46,7 @@ ynh_add_fail2ban_config_temp () {
|
|||
ynh_backup_if_checksum_is_different "$finalfail2banjailconf" 1
|
||||
ynh_backup_if_checksum_is_different "$finalfail2banfilterconf" 1
|
||||
|
||||
sudo tee $finalfail2banjailconf <<EOF
|
||||
tee $finalfail2banjailconf <<EOF
|
||||
[$app]
|
||||
enabled = true
|
||||
port = $ports
|
||||
|
@ -55,7 +55,7 @@ logpath = $logpath
|
|||
maxretry = $max_retry
|
||||
EOF
|
||||
|
||||
sudo tee $finalfail2banfilterconf <<EOF
|
||||
tee $finalfail2banfilterconf <<EOF
|
||||
[INCLUDES]
|
||||
before = common.conf
|
||||
[Definition]
|
||||
|
@ -81,7 +81,7 @@ EOF
|
|||
ynh_remove_fail2ban_config () {
|
||||
ynh_secure_remove "/etc/fail2ban/jail.d/$app.conf"
|
||||
ynh_secure_remove "/etc/fail2ban/filter.d/$app.conf"
|
||||
sudo systemctl restart fail2ban
|
||||
systemctl restart fail2ban
|
||||
}
|
||||
|
||||
ynh_smart_mktemp () {
|
||||
|
@ -107,5 +107,5 @@ ynh_smart_mktemp () {
|
|||
ynh_die "Insufficient free space to continue..."
|
||||
fi
|
||||
|
||||
echo "$(sudo mktemp --directory --tmpdir="$tmpdir")"
|
||||
echo "$(mktemp --directory --tmpdir="$tmpdir")"
|
||||
}
|
||||
|
|
|
@ -131,8 +131,8 @@ ynh_add_fpm_config
|
|||
|
||||
# set proper permissions
|
||||
ynh_print_info "Set permissions..."
|
||||
find $final_path -type f | xargs sudo chmod 644
|
||||
find $final_path -type d | xargs sudo chmod 755
|
||||
find $final_path -type f | xargs chmod 644
|
||||
find $final_path -type d | xargs chmod 755
|
||||
|
||||
# Set right permissions for curl install
|
||||
ynh_print_info "Set rights..."
|
||||
|
|
|
@ -88,9 +88,9 @@ ynh_secure_remove "$final_path"
|
|||
ynh_print_info "Upgrading source files..."
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source "$final_path"
|
||||
sudo cp -a "$tmpdir/data" "${final_path}/"
|
||||
sudo cp -a "$tmpdir/tpl" "${final_path}/"
|
||||
sudo rm -Rf "$tmpdir"
|
||||
cp -a "$tmpdir/data" "${final_path}/"
|
||||
cp -a "$tmpdir/tpl" "${final_path}/"
|
||||
rm -Rf "$tmpdir"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
|
Loading…
Add table
Reference in a new issue