mirror of
https://github.com/YunoHost-Apps/squid3_ynh.git
synced 2024-09-03 20:26:11 +02:00
Folder name from squid to squid3
This commit is contained in:
parent
99ca222873
commit
cf6e207dde
3 changed files with 8 additions and 8 deletions
|
@ -31,4 +31,4 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
# BACKUP OF THE CONFIG OF SQUID3
|
# BACKUP OF THE CONFIG OF SQUID3
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup "/etc/squid/squid.conf"
|
ynh_backup "/etc/squid3/squid.conf"
|
||||||
|
|
|
@ -86,7 +86,7 @@ ynh_install_app_dependencies squid3
|
||||||
|
|
||||||
ynh_replace_string "__ADMIN_PASS__" "$admin_pass_yuno" "../conf/squid.conf"
|
ynh_replace_string "__ADMIN_PASS__" "$admin_pass_yuno" "../conf/squid.conf"
|
||||||
ynh_replace_string "__PORT__" "$port" "../conf/squid.conf"
|
ynh_replace_string "__PORT__" "$port" "../conf/squid.conf"
|
||||||
cp -f "../conf/squid.conf" "/etc/squid/."
|
cp -f "../conf/squid.conf" "/etc/squid3/."
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE THE CONFIG FILE CHECKSUM
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -96,7 +96,7 @@ cp -f "../conf/squid.conf" "/etc/squid/."
|
||||||
### you can make a backup of this file before modifying it again if the admin had modified it.
|
### you can make a backup of this file before modifying it again if the admin had modified it.
|
||||||
|
|
||||||
# Calculate and store the config file checksum into the app settings
|
# Calculate and store the config file checksum into the app settings
|
||||||
ynh_store_file_checksum "/etc/squid/squid.conf"
|
ynh_store_file_checksum "/etc/squid3/squid.conf"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -118,14 +118,14 @@ yunohost service add squid --log "/var/log/squid/access.log"
|
||||||
# RESTART SQUID'S SERVICE
|
# RESTART SQUID'S SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_system_reload --service_name=squid --action=restart
|
ynh_system_reload --service_name=squid3 --action=restart
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SEND A README FOR THE ADMIN
|
# SEND A README FOR THE ADMIN
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
message="You can find a config file at /etc/squid/squid.conf
|
message="You can find a config file at /etc/squid3/squid.conf
|
||||||
Squid 3 will work with your registered users. Just put the username and password when asked.
|
Squid 3 will work with your registered users. Just put the username and password when asked.
|
||||||
|
|
||||||
To configure on Firefox go to preferences->general->network proxy->manual proxy configuration.
|
To configure on Firefox go to preferences->general->network proxy->manual proxy configuration.
|
||||||
|
|
|
@ -47,8 +47,8 @@ yunohost firewall allow --no-upnp TCP $port
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE INOTIFY'S CONFIG
|
# RESTORE INOTIFY'S CONFIG
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_secure_remove "/etc/squid/squid.conf"
|
ynh_secure_remove "/etc/squid3/squid.conf"
|
||||||
ynh_restore_file "/etc/squid/squid.conf"
|
ynh_restore_file "/etc/squid3/squid.conf"
|
||||||
ynh_system_reload --service_name=squid --action=restart
|
ynh_system_reload --service_name=squid --action=restart
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
@ -61,7 +61,7 @@ yunohost service add squid --log "/var/log/squid/access.log"
|
||||||
# SEND A README FOR THE ADMIN
|
# SEND A README FOR THE ADMIN
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
message="You can find a config file at /etc/squid/squid.conf
|
message="You can find a config file at /etc/squid3/squid.conf
|
||||||
Squid 3 will work with your registered users. Just put the username and password when asked.
|
Squid 3 will work with your registered users. Just put the username and password when asked.
|
||||||
|
|
||||||
To configure on Firefox go to preferences->general->network proxy->manual proxy configuration.
|
To configure on Firefox go to preferences->general->network proxy->manual proxy configuration.
|
||||||
|
|
Loading…
Add table
Reference in a new issue